Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user