From 6bc6ab90a96895b3b69483c229d2bf67a60ea334 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Thu, 28 Mar 2013 11:10:44 +0530 Subject: [PATCH] Install Nginx Helper Plugin For WPMU SubDomain --- setup/engine | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/setup/engine b/setup/engine index b1335374..89697443 100755 --- a/setup/engine +++ b/setup/engine @@ -731,7 +731,6 @@ then echo -e "\033[34m Please Configure Nginx Helper Settings \e[0m" echo -e "\033[34m Nginx Helper: http://$DOMAIN/wp-admin/options-general.php?page=nginx \e[0m" - # Reload Nginx Configuration NGINXRELOAD @@ -784,6 +783,24 @@ then /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" + + # Activate Nginx Helper + wp plugin activate nginx-helper || OwnError "Unable To Activate Nginx Helper Plugin" + + # Call WEBUSERINFO Function For Web User Details + WEBUSERINFO + + # Give Ownership To $NGINXUSER + chown -R $NGINXUSER:$NGINXUSER /var/www/$DOMAIN/ + + # Display W3 Total Cache URL For Settings + echo -e "\033[34m Please Configure Nginx Helper Settings \e[0m" + echo -ne "\033[34m Nginx Helper:\e[0m" + echo -e "\033[34m http://$DOMAIN/wp-admin/options-general.php?page=nginx \e[0m" # Reload Nginx Configuration NGINXRELOAD