From d1c574333e2ea024d42c6222ec717a29e2d461ae Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 24 Jan 2019 21:05:30 -0500 Subject: [PATCH] added second case for /z residents if a directory actually just lived in /z/ before rather than being linked in from /home/archives, the old version of the script would miss it and not do the refred or whatever properly. now it will. --- scripts/security/cool_permissionator.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/security/cool_permissionator.sh b/scripts/security/cool_permissionator.sh index 855511e6..ab5e850b 100644 --- a/scripts/security/cool_permissionator.sh +++ b/scripts/security/cool_permissionator.sh @@ -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 -- 2.34.1