Fix initial rsnapshot config correction
This commit is contained in:
parent
cf078a123c
commit
7075faeb7a
|
@ -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})"
|
||||
|
|
Loading…
Reference in New Issue