apache-sync-logs: Skip people who do not have keytabs
[hcoop/scripts.git] / apache-sync-logs
index 6e83894..fdc2919 100755 (executable)
@@ -33,6 +33,11 @@ for A in $(find $LOCAL_LOG_DIR -mindepth 3 -maxdepth 3 -print); do
         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 "=============================================================================="