Fix regexp
This commit is contained in:
parent
52d0a17cae
commit
2c4d2915e5
|
@ -180,8 +180,8 @@ if [[ $MODE == "install" ]]; then
|
||||||
else
|
else
|
||||||
# Update command paths if upgrading from earlier version
|
# Update command paths if upgrading from earlier version
|
||||||
echo "Updating cp and rm command paths..."
|
echo "Updating cp and rm command paths..."
|
||||||
sed -i "#/opt/bin/cp\$#/usr/bin/cp#" "$BKP_DIR"/etc/rsnapshot.global.conf
|
sed -i "s#/opt/bin/cp\$#/usr/bin/cp#" "$BKP_DIR"/etc/rsnapshot.global.conf
|
||||||
sed -i "#/opt/bin/rm\$#/usr/bin/rs-rm#" "$BKP_DIR"/etc/rsnapshot.global.conf
|
sed -i "s#/opt/bin/rm\$#/usr/bin/rs-rm#" "$BKP_DIR"/etc/rsnapshot.global.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create symlink for chroot
|
# Create symlink for chroot
|
||||||
|
|
Loading…
Reference in New Issue