projects
/
backups
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added sourcing of system specific configuration file /etc/lsbackups.conf if it exists.
[backups/.git]
/
scripts
/
cron-burn.sh
diff --git
a/scripts/cron-burn.sh
b/scripts/cron-burn.sh
index 496793598d3785db118f3699ba6b00e879723417..f2ca41480a0f72984a3130338fcd67858103421d 100755
(executable)
--- a/
scripts/cron-burn.sh
+++ b/
scripts/cron-burn.sh
@@
-2,8
+2,15
@@
export PATH=$(dirname $0):/bin:/usr/bin:/sbin
export PATH=$(dirname $0):/bin:/usr/bin:/sbin
+# source the default configuration
. config.sh
. config.sh
+# source the system specific configuration
+if [ -f /etc/lsbackups.conf ]
+then
+ . /etc/lsbackups.conf
+fi
+
# burn-imgs.sh needs to be detached so that it can stop and start cron without
# dying itself.
# burn-imgs.sh needs to be detached so that it can stop and start cron without
# dying itself.