Added sourcing of system specific configuration file /etc/lsbackups.conf if it exists.
[backups/.git] / scripts / cron-pack.sh
index a757da9a38a92456578303b880c5e4fede5d6bb4..62c65ad746dcac88e2bb5413ab212694e88bd1db 100755 (executable)
@@ -2,8 +2,15 @@
 
 export PATH=$(dirname $0):/bin:/usr/bin:/sbin
 
+# source the default configuration
 . config.sh
 
+# source the system specific configuration
+if [ -f /etc/lsbackups.conf ]
+then
+  . /etc/lsbackups.conf
+fi 
+
 if [ -n "$(find $lastbackupfile -mtime +14)" -o -n "$(cat $statusfile | grep -i incomplete)" ]; then
   echo "Running backups from cron..."
   setsid pack-image.sh