added second case for /z residents
[feisty_meow.git] / scripts / security / cool_permissionator.sh
index 855511e6941cd03fdb90168953794405024a9ff8..ab5e850bfbe333fbb71efae4a4af1e4d40a3429f 100644 (file)
@@ -23,6 +23,14 @@ function reapply_cool_permissions()
   done
 #echo arch addin now is: $arch_addin
 
+  # now another round with similar setup, to ensure we get any directories
+  # that actually live out in /z but not in /home/archives.
+  ARCHIVE_TOP=/z
+  for dirname in $arch_builder; do
+    arch_addin+="$ARCHIVE_TOP/$dirname "
+  done
+#echo arch addin now is: $arch_addin
+
   # special case that makes our software hierarchy folder, if it doesn't exist.
   # everything else is only re-permed if it exists.
   if [ ! -d "$DEFAULT_FEISTYMEOW_ORG_DIR" ]; then