diff --git a/setup/engine b/setup/engine index 3e6f0152..2b2f766f 100755 --- a/setup/engine +++ b/setup/engine @@ -779,17 +779,6 @@ then if [ "$6" = "basic" ] then - # Taking Backup - mv /etc/nginx/sites-available/$DOMAIN \ - /etc/nginx/sites-available/backups/$DOMAIN.$(date +%d%m%Y.%H%M%S) - - # Updating Site - echo -e "\033[34m Updating $DOMAIN For Basic WPMU, Please Wait... \e[0m" - sed "s/example.com/$DOMAIN/g" \ - /usr/share/easyengine/nginx/multisite/subdomain/basic.conf \ - > /etc/nginx/sites-available/$DOMAIN \ - || OwnError "Unable To Update Configuration File For $DOMAIN" - # Installing Nginx Helper cd /var/www/$DOMAIN/htdocs/ wp plugin install nginx-helper || OwnError "Unable To Install Nginx Helper" @@ -810,8 +799,18 @@ then echo -e "\033[34m http://$DOMAIN/wp-admin/options-general.php?page=nginx \e[0m" echo -e "\033[34m Press Enter, Once You Setup Nginx Helper Plugin: \e[0m" read - + # Taking Backup + mv /etc/nginx/sites-available/$DOMAIN \ + /etc/nginx/sites-available/backups/$DOMAIN.$(date +%d%m%Y.%H%M%S) + + # Updating Site + echo -e "\033[34m Updating $DOMAIN For Basic WPMU, Please Wait... \e[0m" + sed "s/example.com/$DOMAIN/g" \ + /usr/share/easyengine/nginx/multisite/subdomain/basic.conf \ + > /etc/nginx/sites-available/$DOMAIN \ + || OwnError "Unable To Update Configuration File For $DOMAIN" + # Reload Nginx Configuration NGINXRELOAD