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
|
# Do not overwrite existing config
|
||||||
if [ ! -e /etc/rs-backup/server-config ]; then
|
if [ ! -e /etc/rs-backup/server-config ]; then
|
||||||
$CP ./server/etc/rs-backup /etc/
|
$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
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
@ -145,6 +141,10 @@ if [[ $MODE == "install" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$CP ./server/bkp/etc/* "$BKP_DIR"/etc/
|
$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
|
# Create symlink for chroot
|
||||||
dir="$(dirname ${BKP_DIR}${BKP_DIR})"
|
dir="$(dirname ${BKP_DIR}${BKP_DIR})"
|
||||||
|
|
Loading…
Reference in New Issue