X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Frefred.sh;fp=scripts%2Fcustomize%2Ffred%2Frefred.sh;h=3b671bd7eea7091ba96418a78471835f15371617;hp=088e8e3b4f76cd1ffbfc94b7a09ad38fc8d629d3;hb=89bbd8fff37ad9c060c989b07fb6d2fb87972a7d;hpb=2feac2219383a262b5f70795ec22b207d15a111d diff --git a/scripts/customize/fred/refred.sh b/scripts/customize/fred/refred.sh index 088e8e3b..3b671bd7 100644 --- a/scripts/customize/fred/refred.sh +++ b/scripts/customize/fred/refred.sh @@ -15,8 +15,14 @@ function refred() 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 + fi + # iterate across the list of dirs we want fred to own and change their ownership. - for dirname in /home/fred /opt/feistymeow.org /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