X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/blobdiff_plain/8e736f3904f469f39f3b9b17872805bf092725b1..089cf0fa601e712039743fb70d5e819c4ce2a63e:/apache-sync-logs diff --git a/apache-sync-logs b/apache-sync-logs index 69095ed..58c24c5 100755 --- a/apache-sync-logs +++ b/apache-sync-logs @@ -69,7 +69,8 @@ for A in $(find $LOCAL_LOG_DIR -mindepth 3 -maxdepth 3 -print); do fi continue else - k5start -qtU -f $KEYTAB_DIR/$USER -- rsync -a --no-owner --no-group --delete $LOG_SRC/ $LOG_DEST/ + # LOG_SRC/* is important: don't remove log files just because a vhost is gone + k5start -qtU -f $KEYTAB_DIR/$USER -- rsync -a --no-owner --no-group --delete $LOG_SRC/* $LOG_DEST/ test "$VERBOSE" = "true" && echo " done." fi done