From: Silvio Rhatto Date: Thu, 10 May 2012 19:53:52 +0000 (-0300) Subject: Changing remaining 'exit' to 'fatal' at rsync handler (#3721) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bf5ada0f0357dd3b7500d03dd4a4a2f84282e8c1;p=backupninja.git Changing remaining 'exit' to 'fatal' at rsync handler (#3721) --- 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