updated connect script to new init files
[feisty_meow.git] / scripts / customize / fred / refred.sh
index b04be4b5989fa7e61b4e40e50448afd6e6300099..088e8e3b4f76cd1ffbfc94b7a09ad38fc8d629d3 100644 (file)
@@ -16,7 +16,7 @@ function refred()
 #echo arch addin now is: $arch_addin
 
   # iterate across the list of dirs we want fred to own and change their ownership.
-  for dirname in /home/fred /usr/local/fred /home/games $arch_addin; do
+  for dirname in /home/fred /opt/feistymeow.org /usr/local/fred /home/games $arch_addin; do
     if [ -d "$dirname" ]; then
       echo "refred on '$dirname'"
       sudo chown -R fred:fred $dirname
@@ -25,10 +25,13 @@ function refred()
 
   # special case for archives directory.
   if [ -d /z/stuffing -o -L /z/stuffing ]; then
-    chmod g+rx,o+rx /z
-    chmod g+rx,o-rwx /z/stuffing
+    sudo chown fred:fred /z; sudo chmod g+rx,o+rx /z
+    sudo chown fred:fred /z/stuffing; sudo chmod g+rx,o-rwx /z/stuffing
     pushd /z/stuffing &>/dev/null
-    if [ -d archives -o -L archives ]; then group_perm archives; fi
+    if [ -d archives -o -L archives ]; then
+      sudo chown fred:fred archives
+      sudo chmod -R g+rwx archives
+    fi
     popd &>/dev/null
   fi