Browse Source

Crosscheck Information For WordPress Setup

old-stable
Mitesh Shah 11 years ago
parent
commit
9e4e000f5d
  1. 40
      usr/local/sbin/easyengine

40
usr/local/sbin/easyengine

@ -464,6 +464,7 @@ MYSQLINFO()
MYSQLPASSCHECK MYSQLPASSCHECK
read -p "Enter The MySQL Database Name [$DOMAIN]: " WPDBNAME read -p "Enter The MySQL Database Name [$DOMAIN]: " WPDBNAME
# If Enter Is Pressed, Then Use $DOMAIN As Database Name # If Enter Is Pressed, Then Use $DOMAIN As Database Name
if [[ $WPDBNAME = "" ]] if [[ $WPDBNAME = "" ]]
then then
@ -682,23 +683,48 @@ EEWPDBSETUP()
{ {
# Get WordPress Site Title # Get WordPress Site Title
echo -e "\033[34m WordPress Information Required... \e[0m" echo -e "\033[34m WordPress Information Required... \e[0m"
read -p "Site Title: " SITETITLE
read -p "Site Title [$DOMAIN]: " SITETITLE
# If Enter Is Pressed, Then Use admin As WordPress Admin Username
if [[ $SITETITLE = "" ]]
then
SITETITLE=$DOMAIN
fi
read -p "Username [admin]: " WPADMINUSER read -p "Username [admin]: " WPADMINUSER
# If Enter Is Pressed, Then Use admin As WordPress Admin Username
if [[ $WPADMINUSER = "" ]]
then
WPADMINUSER=admin
fi
# Turn Off Echo For Passwords # Turn Off Echo For Passwords
stty -echo stty -echo
read -p "Password: " WPADMINPASS read -p "Password: " WPADMINPASS
stty echo stty echo
# Cross Check Blank WordPress Admin Password
while [ -z $WPADMINPASS ]
do
echo -e "\033[31m \n Warning: \033[34m WordPress Admin Password Should Not Blank \e[0m"
# Turn Off Echo For Passwords
stty -echo
read -p "Password: " WPADMINPASS
stty echo
done
echo echo
read -p "Email: " WPADMINEMAIL read -p "Email: " WPADMINEMAIL
# If Enter Is Pressed, Then Use admin As WordPress Admin Username # Cross Check Blank WordPress Admin Email Address
if [[ $WPADMINUSER = "" ]] while [ -z $WPADMINEMAIL ]
then do
WPADMINUSER=admin echo -e "\033[31m Warning: \033[34m WordPress Admin Email Should Not Blank \e[0m"
#echo $WPADMINUSER read -p "Email: " WPADMINEMAIL
fi done
# Create WordPress Tables # Create WordPress Tables
echo -e "\033[34m Setting Up WordPress, Please Wait... \e[0m" echo -e "\033[34m Setting Up WordPress, Please Wait... \e[0m"

Loading…
Cancel
Save