From 17bf52620a82ec3c799c752529ab5158bb945115 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Fri, 29 Mar 2013 10:32:35 +0530 Subject: [PATCH] Fix WPMU Settings --- setup/engine | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) 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