]> arthur.barton.de Git - backup-script.git/commitdiff
Test for conf_d in /usr/local/etc/backup-script.d, too
authorAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 08:32:23 +0000 (10:32 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 08:32:23 +0000 (10:32 +0200)
bin/backup-script

index e2d796a14f864986a032e69b813bd18dcfc2f134..412d7b6a12429582244d20d3bba5986d75cfc598 100755 (executable)
@@ -26,7 +26,9 @@ declare -i count_ok_vanished=0
 destinations=""
 
 # Default settings, can be overwritten in backup-script.conf:
-conf_d="/etc/backup-script.d"
+[ -d "/usr/local/etc/backup-script.d" ] \
+       && conf_d="/usr/local/etc/backup-script.d" \
+       || conf_d="/etc/backup-script.d"
 pre_exec=""
 post_exec=""
 default_source_root="/"