Commit e18def2a authored by Elmar Hoffmann's avatar Elmar Hoffmann Committed by Iustin Pop
Browse files

ganeti-cleaner: does 'echo 0' instead of 'exit 0'



This is from Debian Bug#568105.

ganeti-cleaner in one case erroneously calls "echo 0" instead of "exit
0". As ganeti-cleaner is called in the daily cronjob, this leads to a
daily mail containing just "0" with an unconfigured default install.
Signed-off-by: default avatarElmar Hoffmann <elho@elho.net>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
parent ba0b05fe
......@@ -27,7 +27,7 @@ QUEUE_ARCHIVE_DIR=$DATA_DIR/queue/archive
REMOVE_AFTER=21
# Exit if machine is not part of a cluster
[[ -e $DATA_DIR/ssconf_master_node ]] || echo 0
[[ -e $DATA_DIR/ssconf_master_node ]] || exit 0
# Exit if queue archive directory doesn't exist
[[ -d $QUEUE_ARCHIVE_DIR ]] || exit 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment