for A in $(find $LOCAL_LOG_DIR -mindepth 3 -maxdepth 3 -print); do
USER=`basename $A`
PATHBITS=`echo $USER | head -c 1`/`echo $USER | head -c 2`/$USER
+ USER_HOME=$AFS_USER_DIR/$PATHBITS
LOG_SRC=$A/apache/log
- LOG_DEST=$AFS_USER_DIR/$PATHBITS/.logs/apache/
+ LOG_DEST=$USER_HOME/.logs/apache/
TMP_DEST=$LOG_SRC.tmp
# Skip deleted or empty log directories
continue
fi
+ # Skip people who have unreadable log subdirectories
+ if test -d "$USER_HOME/.logs" && \
+ ! ls "$USER_HOME/.logs" >/dev/null 2>&1; then
+ continue
+ fi
+
+ # Skip people who do not have keytabs
+ if test ! -f "$KEYTAB_DIR/$USER"; then
+ continue
+ fi
+
if test "$VERBOSE" = "true"; then
echo
echo "=============================================================================="