From 65ec9170de2d8b11cf492bd46b92cbdef5d80edc Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Mon, 6 Oct 2014 00:57:32 +0200 Subject: [PATCH] Create all necessary directories on Synology DSM, skip the rest --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index bb8c82b..43c5694 100755 --- a/install.sh +++ b/install.sh @@ -123,18 +123,19 @@ if [[ $MODE == "install" ]]; then echo "Creating backup directory structure at '$BKP_DIR'..." - $MKDIR "$BKP_DIR"/bin + #$MKDIR "$BKP_DIR"/bin $MKDIR "$BKP_DIR"/dev $MKDIR "$BKP_DIR"/etc $MKDIR "$BKP_DIR"/lib $MKDIR "$BKP_DIR"/usr/bin - $MKDIR "$BKP_DIR"/usr/lib + [[ "$DISTRIBUTION" != "Synology" ]] && $MKDIR "$BKP_DIR"/usr/lib if [[ "$DISTRIBUTION" == "Ubuntu" ]]; then $MKDIR "$BKP_DIR"/usr/share/perl elif [[ "$DISTRIBUTION" == "Synology" ]]; then $MKDIR "$BKP_DIR"/opt/bin - $MKDIR "$BKP_DIR"/opt/lib/perl5 + $MKDIR "$BKP_DIR"/opt/lib + $MKDIR "$BKP_DIR"/opt/libexec else $MKDIR "$BKP_DIR"/usr/share/perl5 fi