Browse Source

Fix WPMU Settings

old-stable
Mitesh Shah 12 years ago
parent
commit
17bf52620a
  1. 21
      setup/engine

21
setup/engine

@ -779,17 +779,6 @@ then
if [ "$6" = "basic" ] if [ "$6" = "basic" ]
then 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 # Installing Nginx Helper
cd /var/www/$DOMAIN/htdocs/ cd /var/www/$DOMAIN/htdocs/
wp plugin install nginx-helper || OwnError "Unable To Install Nginx Helper" wp plugin install nginx-helper || OwnError "Unable To Install Nginx Helper"
@ -811,6 +800,16 @@ then
echo -e "\033[34m Press Enter, Once You Setup Nginx Helper Plugin: \e[0m" echo -e "\033[34m Press Enter, Once You Setup Nginx Helper Plugin: \e[0m"
read 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 # Reload Nginx Configuration
NGINXRELOAD NGINXRELOAD

Loading…
Cancel
Save