|
@ -392,6 +392,13 @@ NGINXUSERINFO() |
|
|
|| OwnError "Unable To Findout Nginx Username" |
|
|
|| OwnError "Unable To Findout Nginx Username" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
NGINXRELOAD() |
|
|
|
|
|
{ |
|
|
|
|
|
# Reload Nginx Configuration |
|
|
|
|
|
echo -e "\033[34m Reloading Nginx Configuration, Please Wait... \e[0m" |
|
|
|
|
|
nginx -t && service nginx reload || OwnError "Unable To Reload Nginx" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
NGINXRESTART() |
|
|
NGINXRESTART() |
|
|
{ |
|
|
{ |
|
|
# Test & Reload Nginx |
|
|
# Test & Reload Nginx |
|
@ -532,8 +539,7 @@ EEPERMISSION() |
|
|
chown -R $NGINXUSER:$NGINXUSER /var/www/$DOMAIN/ || OwnError "Unable To Change Ownership For $DOMAIN" |
|
|
chown -R $NGINXUSER:$NGINXUSER /var/www/$DOMAIN/ || OwnError "Unable To Change Ownership For $DOMAIN" |
|
|
|
|
|
|
|
|
# Reload Nginx Configuration |
|
|
# Reload Nginx Configuration |
|
|
echo -e "\033[34m Reloading Nginx Configuration, Please Wait... \e[0m" |
|
|
NGINXRELOAD |
|
|
nginx -t && service nginx reload || OwnError "Unable To Reload Nginx" |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# NGINX Configuration Function |
|
|
# NGINX Configuration Function |
|
@ -1445,6 +1451,9 @@ then |
|
|
ln -s /etc/nginx/sites-available/$DOMAIN /etc/nginx/sites-enabled/ \ |
|
|
ln -s /etc/nginx/sites-available/$DOMAIN /etc/nginx/sites-enabled/ \ |
|
|
|| OwnError "Unable To Create Symbolic Link For $DOMAIN" |
|
|
|| OwnError "Unable To Create Symbolic Link For $DOMAIN" |
|
|
|
|
|
|
|
|
|
|
|
# Reload Nginx Configuration |
|
|
|
|
|
NGINXRELOAD |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif [ "$2" = "disable" ] |
|
|
elif [ "$2" = "disable" ] |
|
|
then |
|
|
then |
|
@ -1458,6 +1467,9 @@ then |
|
|
rm /etc/nginx/sites-enabled/$DOMAIN \ |
|
|
rm /etc/nginx/sites-enabled/$DOMAIN \ |
|
|
|| OwnError "Unable To Remove Symbolic Link For $DOMAIN" |
|
|
|| OwnError "Unable To Remove Symbolic Link For $DOMAIN" |
|
|
|
|
|
|
|
|
|
|
|
# Reload Nginx Configuration |
|
|
|
|
|
NGINXRELOAD |
|
|
|
|
|
|
|
|
#elif [ "$2" = "delete" ] |
|
|
#elif [ "$2" = "delete" ] |
|
|
#then |
|
|
#then |
|
|
|
|
|
|
|
|