Fix initial rsnapshot config correction

This commit is contained in:
Janek Bevendorff 2014-10-05 16:19:54 +02:00
parent cf078a123c
commit 7075faeb7a
1 changed files with 4 additions and 4 deletions

View File

@ -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})"