Fix regexp

This commit is contained in:
Janek Bevendorff 2016-11-17 02:00:10 +01:00
parent 52d0a17cae
commit 2c4d2915e5
1 changed files with 2 additions and 2 deletions

View File

@ -180,8 +180,8 @@ if [[ $MODE == "install" ]]; then
else
# Update command paths if upgrading from earlier version
echo "Updating cp and rm command paths..."
sed -i "#/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/cp\$#/usr/bin/cp#" "$BKP_DIR"/etc/rsnapshot.global.conf
sed -i "s#/opt/bin/rm\$#/usr/bin/rs-rm#" "$BKP_DIR"/etc/rsnapshot.global.conf
fi
# Create symlink for chroot