summaryrefslogtreecommitdiff
path: root/bin/bbackupd/bbackupd-config.in
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-03-17 21:28:45 +0000
committerChris Wilson <chris+github@qwirx.com>2011-03-17 21:28:45 +0000
commit0d8aa6751d0075d1495710cddb5afdf1a92d52f3 (patch)
tree08263df3d46081627f2ffbf5cbdb54f17ec95685 /bin/bbackupd/bbackupd-config.in
parent7f0acd46826947a47bece74fe4b7ea50a462eec2 (diff)
Fix errors reported by default Unix notify script on backup-ok events,
thanks to Steve Haeck for the bug report.
Diffstat (limited to 'bin/bbackupd/bbackupd-config.in')
-rwxr-xr-xbin/bbackupd/bbackupd-config.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/bbackupd/bbackupd-config.in b/bin/bbackupd/bbackupd-config.in
index 98dc8b6e..1fc224c2 100755
--- a/bin/bbackupd/bbackupd-config.in
+++ b/bin/bbackupd/bbackupd-config.in
@@ -227,7 +227,7 @@ SUBJECT="BACKUP PROBLEM on host $hostname"
SENDTO="$current_username"
if [ "\$1" = "" ]; then
- echo "Usage: \$0 <store-full|read-error|backup-error|backup-start|backup-finish>" >&2
+ echo "Usage: \$0 <store-full|read-error|backup-ok|backup-error|backup-start|backup-finish>" >&2
exit 2
elif [ "\$1" = store-full ]; then
$sendmail \$SENDTO <<EOM
@@ -262,7 +262,7 @@ these errors, and take appropriate action.
Other files are being backed up.
EOM
-elif [ "\$1" = backup-start -o "\$1" = backup-finish ]; then
+elif [ "\$1" = backup-start -o "\$1" = backup-finish -o "\$1" = backup-ok ]; then
# do nothing by default
true
else