3 # cleans up the ownership for all my files and dirs.
6 # first build a list of dirs based on their location in /home/archives.
7 local arch_builder="archons basement codebarn games imaginations musix pooling prewar_toaster stuffing toaster walrus"
8 local ARCHIVE_HOME=/home/archives
11 for dirname in $arch_builder; do
12 arch_addin+="$ARCHIVE_HOME/$dirname "
14 #echo arch addin now is: $arch_addin
16 # iterate across the list of dirs we want fred to own and change their ownership.
17 for dirname in /home/fred /usr/local/fred /home/games $arch_addin; do
18 if [ -d "$dirname" ]; then
19 echo "refred on '$dirname'"
20 sudo chown -R fred:fred $dirname
24 # make the logs readable by normal humans.
25 sudo bash $FEISTY_MEOW_SCRIPTS/security/normal_perm.sh /var/log
28 # this block should execute when the script is actually run, rather
29 # than when it's just being sourced.
30 if [[ $0 =~ .*refred\.sh.* ]]; then
31 THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"
32 source "$THISDIR/../../core/launch_feisty_meow.sh"