Set exit status in apache-sync-logs
authorbigmike160 <bigmike160>
Wed, 12 Sep 2007 12:50:08 +0000 (12:50 +0000)
committerbigmike160 <bigmike160>
Wed, 12 Sep 2007 12:50:08 +0000 (12:50 +0000)
apache-sync-logs

index b0e007b..b7f49ea 100755 (executable)
@@ -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