create user to /dev/null
This commit is contained in:
parent
03b4bacb4d
commit
c452d9863c
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,7 @@ while true; do
|
||||||
read -p "(y/n): " SURE
|
read -p "(y/n): " SURE
|
||||||
case $SURE in
|
case $SURE in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
if [[ ! -z "`mysql -qfsBe "SELECT User FROM mysql.user WHERE User = '${USER}'" 2>&1`" ]];
|
if [[ ! -z "`mysql -qfsBe "SELECT User FROM mysql.user WHERE User = '${USER}'" &>/dev/null`" ]];
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
echo -e "${RED}User already exists!"
|
echo -e "${RED}User already exists!"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue