HCoop
/
hcoop
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c49919
)
Set exit status in apache-sync-logs
author
bigmike160
<bigmike160>
Wed, 12 Sep 2007 12:50:08 +0000
(12:50 +0000)
committer
bigmike160
<bigmike160>
Wed, 12 Sep 2007 12:50:08 +0000
(12:50 +0000)
apache-sync-logs
patch
|
blob
|
blame
|
history
diff --git
a/apache-sync-logs
b/apache-sync-logs
index
b0e007b
..
b7f49ea
100755
(executable)
--- 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