From a0d0937cd825edc9d4eadc9f2fbe0f41f9ccd73a Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 1 Mar 2018 13:31:48 -0500 Subject: [PATCH] modified umask for apache enables group read/write on files and dirs for apache. also disabled the bluefish install since no one is using that. --- scripts/site_avenger/revamp_cakelampvm.sh | 34 +++++++++++++++++++---- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index 397c6764..2ce26bc6 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" ############## @@ -330,6 +330,28 @@ 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 + ############## ############## -- 2.34.1