From 5f14dd1fd81255cef0a250650a1ed62f49d25df5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 30 Jul 2022 09:26:53 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 9d9cee3d..121e53e7 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1058,7 +1058,7 @@ NEWSITE(){ echo -e "}" >> /etc/nginx/sites-available/${MAIN_SITE} - mkdir -p /var/www/${MAIN_SITE}/{public_html,nginx_logs} + sudo -u www-data mkdir -p /var/www/${MAIN_SITE}/{public_html,nginx_logs} echo -en "${idsCL[LightYellow]}Waiting for folder replication across the webserver nodes... ${idsCL[Default]}" for nip in "${WEB_HOSTS[@]}"; do checkhost=$(CHECK_HOST ${nip}) @@ -1074,7 +1074,7 @@ NEWSITE(){ echo -e "${idsCL[Green]}Completed${idsCL[Default]}" echo -en "${idsCL[LightYellow]}Setting folder permissions... ${idsCL[Default]}" - SET-PERMISSIONS ${MAIN_SITE} + #SET-PERMISSIONS ${MAIN_SITE} echo -e "${idsCL[Green]}Completed${idsCL[Default]}" else @@ -1994,11 +1994,11 @@ if [ ${action-x} ]; then set-permissions) SET-PERMISSIONS ${2};; service) if [[ ( "$2" = "gitea" ) || ( "$2" = "powerdns-admin" ) ]] && [ "$3" = "start" ]; then - SET-PERMISSIONS ${2} + #SET-PERMISSIONS ${2} SERVICE ${2} start elif [[ ( "$2" = "gitea" ) || ( "$2" = "powerdns-admin" ) ]] && [ "$3" = "restart" ]; then SERVICE ${2} stop - SET-PERMISSIONS ${2} + #SET-PERMISSIONS ${2} SERVICE ${2} start elif [ "$2" = "web" ]; then SERVICE php5.6-fpm ${3}