Create all necessary directories on Synology DSM, skip the rest

This commit is contained in:
Janek Bevendorff 2014-10-06 00:57:32 +02:00
parent bfcdf48381
commit 65ec9170de
1 changed files with 4 additions and 3 deletions

View File

@ -123,18 +123,19 @@ if [[ $MODE == "install" ]]; then
echo "Creating backup directory structure at '$BKP_DIR'..." echo "Creating backup directory structure at '$BKP_DIR'..."
$MKDIR "$BKP_DIR"/bin #$MKDIR "$BKP_DIR"/bin
$MKDIR "$BKP_DIR"/dev $MKDIR "$BKP_DIR"/dev
$MKDIR "$BKP_DIR"/etc $MKDIR "$BKP_DIR"/etc
$MKDIR "$BKP_DIR"/lib $MKDIR "$BKP_DIR"/lib
$MKDIR "$BKP_DIR"/usr/bin $MKDIR "$BKP_DIR"/usr/bin
$MKDIR "$BKP_DIR"/usr/lib [[ "$DISTRIBUTION" != "Synology" ]] && $MKDIR "$BKP_DIR"/usr/lib
if [[ "$DISTRIBUTION" == "Ubuntu" ]]; then if [[ "$DISTRIBUTION" == "Ubuntu" ]]; then
$MKDIR "$BKP_DIR"/usr/share/perl $MKDIR "$BKP_DIR"/usr/share/perl
elif [[ "$DISTRIBUTION" == "Synology" ]]; then elif [[ "$DISTRIBUTION" == "Synology" ]]; then
$MKDIR "$BKP_DIR"/opt/bin $MKDIR "$BKP_DIR"/opt/bin
$MKDIR "$BKP_DIR"/opt/lib/perl5 $MKDIR "$BKP_DIR"/opt/lib
$MKDIR "$BKP_DIR"/opt/libexec
else else
$MKDIR "$BKP_DIR"/usr/share/perl5 $MKDIR "$BKP_DIR"/usr/share/perl5
fi fi