From f9be7472fbfce629e0a7796a477715f90a4084e9 Mon Sep 17 00:00:00 2001 From: bigmike160 Date: Wed, 12 Sep 2007 12:50:08 +0000 Subject: [PATCH] Set exit status in apache-sync-logs --- apache-sync-logs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apache-sync-logs b/apache-sync-logs index b0e007b..b7f49ea 100755 --- a/apache-sync-logs +++ b/apache-sync-logs @@ -32,9 +32,11 @@ for A in $(find $LOCAL_LOG_DIR/user -mindepth 3 -maxdepth 3 -print); do if [ ! -d "$LOG_DEST" ]; then echo "Error: $LOG_DEST does not exist, please make it" + exit 1 else k5start -qtU -f $KEYTAB_DIR/$USER \ -- su $USER -c "rsync -a $A/apache/log/ $LOG_DEST/" [ "$VERBOSE" = "true" ] && echo " done." + exit 0 fi done -- 2.20.1