|
|
@ -503,6 +503,31 @@ EEWPSETUP() |
|
|
|
| ed -s /var/www/$DOMAIN/wp-config.php |
|
|
|
} |
|
|
|
|
|
|
|
EEWPDBSETUP() |
|
|
|
{ |
|
|
|
# Get WordPress Site Title |
|
|
|
echo -e "\033[34m WordPress Information Required... \e[0m" |
|
|
|
read -p "Site Title: " SITETITLE |
|
|
|
read -p "Username [admin]: " WPADMINUSER |
|
|
|
read -p "Email: " WPADMINEMAIL |
|
|
|
|
|
|
|
# Turn Off Echo For Passwords |
|
|
|
stty -echo |
|
|
|
read -p "Password: " WPADMINPASS |
|
|
|
stty echo |
|
|
|
|
|
|
|
# If Enter Is Pressed, Then Use admin As WordPress Admin Username |
|
|
|
if [[ $WPADMINUSER = "" ]] |
|
|
|
then |
|
|
|
WPADMINUSER=admin |
|
|
|
#echo $WPADMINUSER |
|
|
|
fi |
|
|
|
|
|
|
|
# Create WordPress Tables |
|
|
|
/var/www/wp-cli/bin/wp core install --url=$DOMAIN --title=$SITETITLE \ |
|
|
|
--admin_name=$WPADMINUSER --admin_password=$WPADMINPASS --admin_email=$WPADMINEMAIL |
|
|
|
} |
|
|
|
|
|
|
|
EEPERMISSION() |
|
|
|
{ |
|
|
|
# Call NGINXUSERINFO Function For NGINX User Details |
|
|
@ -1007,8 +1032,9 @@ then |
|
|
|
NGINXCONF=wpsingle/basic.conf |
|
|
|
EEDOMAINSETUP |
|
|
|
|
|
|
|
# Setup WordPress Webroot |
|
|
|
# Setup WordPress Webroot & Database |
|
|
|
EEWPSETUP |
|
|
|
EEWPDBSETUP |
|
|
|
EEPERMISSION |
|
|
|
|
|
|
|
# Take Nginx Configuration In Git Version Control |
|
|
@ -1030,8 +1056,9 @@ then |
|
|
|
NGINXCONF=wpsingle/w3tc.conf |
|
|
|
EEDOMAINSETUP |
|
|
|
|
|
|
|
# Setup WordPress Webroot |
|
|
|
# Setup WordPress Webroot & Database |
|
|
|
EEWPSETUP |
|
|
|
EEWPDBSETUP |
|
|
|
|
|
|
|
# Installing W3 Total Cache |
|
|
|
cd /var/www/$DOMAIN/htdocs/ |
|
|
|