X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Frevamp_cakelampvm.sh;h=dfc656ae333fd5b2f1de3f48c1cf708d5e978099;hb=8064b3bda39bcb17d8550006a2e99cd9e5cfadee;hp=c1fa3b2b5e14a5cb2f658fb9aca3aa2577cee404;hpb=0e6fc623212a1b486d4044b49d2e028aea84ced8;p=feisty_meow.git diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index c1fa3b2b..dfc656ae 100644 --- a/scripts/site_avenger/revamp_cakelampvm.sh +++ b/scripts/site_avenger/revamp_cakelampvm.sh @@ -131,14 +131,14 @@ fi # install a better editor app. -sep +#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..." +#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" +#apt-get install -y bluefish &> "/tmp/install_bluefish-$(logname).log" +#test_or_continue "installing bluefish editor" ############## @@ -244,7 +244,7 @@ pattern="[#;][[:blank:]]*read only = yes" replacement="read only = no" # we just always do the replacement now, after realizing the sentinel pattern -# was acutally already in the file... too much subtlety can get one into trouble. +# was actually already in the file... too much subtlety can get one into trouble. sed -i "0,/$pattern/{s/$pattern/$replacement/}" /etc/samba/smb.conf test_or_die "patching samba configuration to enable write acccess on user home dirs" # sweet, looks like that worked... @@ -326,7 +326,31 @@ sep echo Adding site avenger packages to composer. # add in site avenger dependencies so we can build avcore properly. -composer config -g repositories.siteavenger composer https://packages.siteavenger.com/ +pushd ~ &>/dev/null +sudo -u $(logname) composer config -g repositories.siteavenger composer https://packages.siteavenger.com/ +popd &>/dev/null + +############## + +# make the apache umask set group permissions automatically, so we stop having weird +# permission issues on temp dirs. + +sep + +grep -q "umask" /etc/apache2/envvars +if [ $? -eq 0 ]; then + # already present. + echo the umask configuration for apache already appears to be set. +else + echo " + +# set umask to enable group read/write on files and directories. +umask 002 + +" >> /etc/apache2/envvars + restart_apache + echo "successfully changed apache umask configuration to enable group read/write" +fi ############## ##############