From: bigmike160 Date: Wed, 12 Sep 2007 12:50:08 +0000 (+0000) Subject: Set exit status in apache-sync-logs X-Git-Url: http://git.hcoop.net/clinton/scripts.git/commitdiff_plain/f9be7472fbfce629e0a7796a477715f90a4084e9?ds=sidebyside Set exit status in apache-sync-logs --- 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