X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Frevamp_cakelampvm_v002.sh;h=7c479d043b393b33109d8bfffc4ccf545d065914;hb=9f3e83fc4e946639c89eeb37b54c21ecc4f40425;hp=b71d8835fc59d35daa3de0b53a646573cd673ffe;hpb=95c741fe5a5f9da6ce7fc54f67ef29c976d518cc;p=feisty_meow.git diff --git a/scripts/site_avenger/revamp_cakelampvm_v002.sh b/scripts/site_avenger/revamp_cakelampvm_v002.sh index b71d8835..7c479d04 100644 --- a/scripts/site_avenger/revamp_cakelampvm_v002.sh +++ b/scripts/site_avenger/revamp_cakelampvm_v002.sh @@ -16,8 +16,8 @@ fi ############## -export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. -export FEISTY_MEOW_APEX="$( \cd "$WORKDIR/../.." && \pwd )" +export THISDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. +export FEISTY_MEOW_APEX="$( \cd "$THISDIR/../.." && \pwd )" export NO_HELLO=right source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh" @@ -77,6 +77,8 @@ sep echo "Making some important permission changes..." +############## + # fix up the main web storage. chown -R www-data:www-data /var/www test_or_die "chown www-data" @@ -90,6 +92,12 @@ chown -R developer:developer /home/developer /home/developer/.[a-zA-Z0-9]* test_or_die "chown developer home" harsh_perm /home/developer/.ssh test_or_die "harsh_perm setting on developer .ssh" + + +############## + +# give the developer control over the apache and bind config files, as well +# as giving the user ownership of the local feisty meow repository. chown -R developer:developer /etc/apache2 /etc/bind test_or_die "chown apache2 and bind to developer" group_perm /etc/apache2 /etc/bind @@ -111,7 +119,7 @@ test_or_die "harsh_perm setting on fred .ssh" group_perm /home/fred/apps/mapsdemo test_or_die "group perms on mapsdemo app" -echo "Done with important permission changes." +echo "...done with permission changes." ############## # @@ -134,19 +142,6 @@ fi ############## -# install a better editor app. - -#sep - -#echo "The script is about to install the bluefish editor and some dependencies. -#If the app is not already installed, then this process takes about one minute -#on a slow home DSL internet connection..." - -#apt-get install -y bluefish &> "/tmp/install_bluefish-$(logname).log" -#test_or_continue "installing bluefish editor" - -############## - # deploy any site updates here to the VM's cakelampvm.com site. # # we want to upgrade the default apache site to the latest, since the new