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
+ sudo mkdir "$DEFAULT_FEISTYMEOW_ORG_DIR"
+ fi
+
# 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 $DEFAULT_FEISTYMEOW_ORG_DIR /usr/local/fred /home/games $arch_addin; do
if [ -d "$dirname" ]; then
echo "refred on '$dirname'"
sudo chown -R fred:fred $dirname
# 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