From: Chris Koeritz Date: Tue, 7 Nov 2017 22:50:59 +0000 (+0000) Subject: nice fixes X-Git-Tag: 2.140.90~48 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=99bef735117729d6a354139602ccfaf45e197e84 nice fixes repairs the /z/ hierarchy's permissions automatically now. --- diff --git a/scripts/customize/fred/refred.sh b/scripts/customize/fred/refred.sh index a2203642..13298710 100644 --- a/scripts/customize/fred/refred.sh +++ b/scripts/customize/fred/refred.sh @@ -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 }