Browse Source

Fixed Issue:71

old-stable
Mitesh Shah 11 years ago
parent
commit
0c8339dd16
  1. 33
      usr/local/sbin/easyengine

33
usr/local/sbin/easyengine

@ -743,6 +743,9 @@ EESITENAME()
# Remove http:// https:// & www. # Remove http:// https:// & www.
DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''" | sed "s'/''") DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''" | sed "s'/''")
fi fi
# Remove http:// https:// For WordPress Setup (www.example.com)
WWWDOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'/''")
} }
NGINXSYMBOLICLINK() NGINXSYMBOLICLINK()
@ -857,7 +860,7 @@ EEWPDBSETUP()
# Create WordPress Tables # Create WordPress Tables
echo -e "\033[34mSetting Up WordPress, Please Wait...\e[0m" echo -e "\033[34mSetting Up WordPress, Please Wait...\e[0m"
cd /var/www/$DOMAIN/htdocs || OwnError "Unable To Change Directory To Install WordPress" cd /var/www/$DOMAIN/htdocs || OwnError "Unable To Change Directory To Install WordPress"
wp core install --url=$DOMAIN --title="$DOMAIN" \ wp core install --url=$WWWDOMAIN --title="$DOMAIN" \
--admin_name=$WPADMINUSER --admin_password=$WPADMINPASS --admin_email=$WPADMINEMAIL &>> $INSTALLLOG \ --admin_name=$WPADMINUSER --admin_password=$WPADMINPASS --admin_email=$WPADMINEMAIL &>> $INSTALLLOG \
|| OwnError "Unable To Create WordPress Tables For $DOMAIN" || OwnError "Unable To Create WordPress Tables For $DOMAIN"
} }
@ -1479,7 +1482,7 @@ then
EEGITCOMMIT EEGITCOMMIT
# Display Success Message # Display Success Message
echo -e "\033[34mhttp://$DOMAIN Domain Successfully Created\e[0m" echo -e "\033[34mhttp://$WWWDOMAIN Domain Successfully Created\e[0m"
elif [ "$3" = "php" ] elif [ "$3" = "php" ]
then then
@ -1499,7 +1502,7 @@ then
EEGITCOMMIT EEGITCOMMIT
# Display Success Message # Display Success Message
echo -e "\033[34mhttp://$DOMAIN Domain Successfully Created\e[0m" echo -e "\033[34mhttp://$WWWDOMAIN Domain Successfully Created\e[0m"
elif [ "$3" = "wp" ] elif [ "$3" = "wp" ]
then then
@ -1523,7 +1526,7 @@ then
echo echo
echo -e "\033[37mWordPress Admin Username: $WPADMINUSER\e[0m" echo -e "\033[37mWordPress Admin Username: $WPADMINUSER\e[0m"
echo -e "\033[37mWordPress Admin Password: $WPADMINPASS\e[0m" echo -e "\033[37mWordPress Admin Password: $WPADMINPASS\e[0m"
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "w3tc" ] elif [ "$4" = "w3tc" ]
then then
@ -1552,7 +1555,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "wpsc" ] elif [ "$4" = "wpsc" ]
then then
@ -1581,7 +1584,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "wpfc" ] elif [ "$4" = "wpfc" ]
then then
@ -1611,7 +1614,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
fi fi
@ -1642,7 +1645,7 @@ then
echo echo
echo -e "\033[37mWordPress Admin Username: $WPADMINUSER\e[0m" echo -e "\033[37mWordPress Admin Username: $WPADMINUSER\e[0m"
echo -e "\033[37mWordPress Admin Password: $WPADMINPASS\e[0m" echo -e "\033[37mWordPress Admin Password: $WPADMINPASS\e[0m"
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "w3tc" ] elif [ "$4" = "w3tc" ]
then then
@ -1677,7 +1680,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "wpsc" ] elif [ "$4" = "wpsc" ]
then then
@ -1712,7 +1715,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "wpfc" ] elif [ "$4" = "wpfc" ]
then then
@ -1748,7 +1751,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
fi fi
@ -1780,7 +1783,7 @@ then
echo echo
echo -e "\033[37mWordPress Admin Username: $WPADMINUSER\e[0m" echo -e "\033[37mWordPress Admin Username: $WPADMINUSER\e[0m"
echo -e "\033[37mWordPress Admin Password: $WPADMINPASS\e[0m" echo -e "\033[37mWordPress Admin Password: $WPADMINPASS\e[0m"
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "w3tc" ] elif [ "$4" = "w3tc" ]
then then
@ -1816,7 +1819,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "wpsc" ] elif [ "$4" = "wpsc" ]
then then
@ -1852,7 +1855,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
elif [ "$4" = "wpfc" ] elif [ "$4" = "wpfc" ]
then then
@ -1889,7 +1892,7 @@ then
# Display Success Message # Display Success Message
echo echo
echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$DOMAIN\e[0m" echo -e "\033[37mSuccessfully Created New $3 $4 Website: http://$WWWDOMAIN\e[0m"
fi fi
fi fi

Loading…
Cancel
Save