aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-05-10 16:53:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-05-10 16:53:52 -0300
commitbf5ada0f0357dd3b7500d03dd4a4a2f84282e8c1 (patch)
tree46fe9c4d04dc50deaf0826ea0458fac493eb7a92 /handlers
parent3b709c9cfd1252c360978fdf44f1d825279682db (diff)
downloadbackupninja-bf5ada0f0357dd3b7500d03dd4a4a2f84282e8c1.tar.gz
backupninja-bf5ada0f0357dd3b7500d03dd4a4a2f84282e8c1.tar.bz2
Changing remaining 'exit' to 'fatal' at rsync handler (#3721)
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rsync.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index 884a885..cb72886 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -391,8 +391,7 @@ function rotate_long {
local metadata
if [ ! -d "$backuproot" ]; then
- echo "Debug: skipping rotate of $backuproot as it doesn't exist."
- exit
+ fatal "Skipping rotate of $backuproot as it doesn't exist."
fi
for rottype in daily weekly monthly; do
@@ -509,7 +508,7 @@ function rotate_long_remote {
now=\`date +%s\`
if [ ! -d "$backuproot" ]; then
- echo "Debug: skipping rotate of $backuproot as it doesn't exist."
+ echo "Fatal: skipping rotate of $backuproot as it doesn't exist."
exit
fi