From dc8a35e78d2692148003b5a769ef8b23c40e4f45 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sun, 5 Oct 2014 18:41:15 +0200 Subject: [PATCH] Replace incompatible busybox /usr/bin/logger with /opt/bin/logger on Synology DSM (now requires util-linux-ng to be installed via ipkg) --- install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ad3811f..6d1f1dc 100755 --- a/install.sh +++ b/install.sh @@ -129,8 +129,6 @@ if [[ $MODE == "install" ]]; then $MKDIR "$BKP_DIR"/lib $MKDIR "$BKP_DIR"/usr/bin $MKDIR "$BKP_DIR"/usr/lib - $MKDIR "$BKP_DIR"/usr/share - if [[ "$DISTRIBUTION" == "Ubuntu" ]]; then $MKDIR "$BKP_DIR"/usr/share/perl @@ -144,7 +142,7 @@ if [[ $MODE == "install" ]]; 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\)\$#/opt/bin/\1#" "$BKP_DIR"/etc/rsnapshot.global.conf + sed -i "s#/usr/bin/\(cp\|rm\|rsync\|logger\)\$#/opt/bin/\1#" "$BKP_DIR"/etc/rsnapshot.global.conf fi # Create symlink for chroot