Skip to content

Commit

Permalink
Display WPDBPREFIX Valid Characters Warning & Try Again
Browse files Browse the repository at this point in the history
  • Loading branch information
MiteshShah committed Jun 17, 2013
1 parent 3535ea2 commit 331599d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion usr/local/sbin/easyengine
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,14 @@ MYSQLINFO()
fi

read -p "Enter The MySQL Database Name [$DOMAIN]: " WPDBNAME
read -p "Enter The MySQL Database Table Prefix [wp_]" WPDBPREFIX
read -p "Enter The MySQL Database Table Prefix [wp_]: " WPDBPREFIX

# Display WPDBPREFIX Valid Characters Warning & Try Again
while [ $(echo $WPDBPREFIX | grep '[^[:alnum:] _]') ]
do
echo -e "\033[31m Warning: \033[34mTable Prefix Can Only Contain Numbers, Letters, And Underscores. \e[0m"
read -p "Enter The MySQL Database Table Prefix [wp_]: " WPDBPREFIX
done

# If Enter Is Pressed, Then Use localhost as MySQL Host
if [[ $MYSQLHOST = "" ]]
Expand All @@ -409,6 +416,7 @@ MYSQLINFO()
if [[ $WPDBPREFIX = "" ]]
then
WPDBPREFIX=wp_
#echo $WPDBPREFIX
fi

# Create Database
Expand Down

0 comments on commit 331599d

Please sign in to comment.