nice fixes
authorChris Koeritz <fred@gruntose.com>
Tue, 7 Nov 2017 22:50:59 +0000 (22:50 +0000)
committerChris Koeritz <fred@gruntose.com>
Tue, 7 Nov 2017 22:50:59 +0000 (22:50 +0000)
repairs the /z/ hierarchy's permissions automatically now.

scripts/customize/fred/refred.sh

index a220364279a4c001776d29ff945cc8ca51bd34a3..13298710897c311f5f25a4ddc4fd9471912f725e 100644 (file)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+#source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+
 # cleans up the ownership for all my files and dirs.
 function refred()
 {
@@ -21,6 +23,15 @@ function refred()
     fi
   done
 
+  # special case for archives directory.
+  if [ -d /z/stuffing -o -L /z/stuffing ]; then
+    chmod g+rx /z
+    chmod g+rwx /z/stuffing
+    pushd /z/stuffing &>/dev/null
+    if [ -d archives -o -L archives ]; then group_perm archives; fi
+    popd &>/dev/null
+  fi
+
   # make the logs readable by normal humans.
   sudo bash $FEISTY_MEOW_SCRIPTS/security/normal_perm.sh /var/log
 }