2005-12-28 21:19:29 +01:00
|
|
|
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
|
2009-05-22 15:27:09 +02:00
|
|
|
# vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
|
2004-12-09 05:37:12 +01:00
|
|
|
#
|
|
|
|
# shell script handler for backupninja
|
|
|
|
# runs the file /etc/backup.d/scriptname.sh
|
2009-05-22 14:50:52 +02:00
|
|
|
#
|
2004-12-09 05:37:12 +01:00
|
|
|
|
2011-08-17 12:00:16 +02:00
|
|
|
# No-op function so that 'when = XXX' can be written as such in
|
|
|
|
# backup.d/*.sh, i.e. with spaces around the equal sign - as in every
|
|
|
|
# other backup.d/ file.
|
|
|
|
function when() {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
2004-12-09 05:37:12 +01:00
|
|
|
[ $test ] || ( . $1 )
|