Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-30 09:26:53 -05:00
parent c9c8365dbe
commit 5f14dd1fd8

View File

@@ -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}