Do not overwrite any existing global rsnapshot config
This commit is contained in:
parent
dc8a35e78d
commit
9705fa78dc
|
@ -139,11 +139,14 @@ if [[ $MODE == "install" ]]; then
|
|||
$MKDIR "$BKP_DIR"/usr/share/perl5
|
||||
fi
|
||||
|
||||
# Do not overwrite existing config
|
||||
if [ ! -e "$BKP_DIR"/etc/rsnapshot.global.conf ]; then
|
||||
$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\|logger\)\$#/opt/bin/\1#" "$BKP_DIR"/etc/rsnapshot.global.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
# Create symlink for chroot
|
||||
dir="$(dirname ${BKP_DIR}${BKP_DIR})"
|
||||
|
|
Loading…
Reference in New Issue