From 7075faeb7aa80db114e1faddbdefd8f293271c44 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sun, 5 Oct 2014 16:19:54 +0200 Subject: [PATCH] Fix initial rsnapshot config correction --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 4b69ee2..f0974b4 100755 --- a/install.sh +++ b/install.sh @@ -73,10 +73,6 @@ if [[ $MODE == "install" ]]; then # Do not overwrite existing config if [ ! -e /etc/rs-backup/server-config ]; then $CP ./server/etc/rs-backup /etc/ - # Correct command paths in rsnapshot config for Synology DSM - if [[ "$DISTRIBUTION" == "Synology" ]]; then - sed -i "s#/usr/bin/\(cp\|rm\|rsync\)\$#/opt/bin/\1#" /etc/rs-backup/rsnapshot.global.conf - fi fi echo @@ -145,6 +141,10 @@ if [[ $MODE == "install" ]]; then fi $CP ./server/bkp/etc/* "$BKP_DIR"/etc/ + # Correct command paths in rsnapshot config for Synology DSM + if [[ "$DISTRIBUTION" == "Synology" ]]; then + sed -i "s#/usr/bin/\(cp\|rm\|rsync\)\$#/opt/bin/\1#" "$BKP_DIR"/etc/rs-backup/rsnapshot.global.conf + fi # Create symlink for chroot dir="$(dirname ${BKP_DIR}${BKP_DIR})"