From 391a4648987e4040e495351a2e16a53deafd025b Mon Sep 17 00:00:00 2001 From: Jens Rey Date: Wed, 19 Sep 2018 14:22:19 +0000 Subject: [PATCH] Fix typo --- mysql-check-socket.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql-check-socket.sh b/mysql-check-socket.sh index 5e13108..407523f 100644 --- a/mysql-check-socket.sh +++ b/mysql-check-socket.sh @@ -26,7 +26,7 @@ if test -e "$socketfile" ; then # some process uses the socket file response=`@bindir@/mysqladmin --no-defaults --socket="$socketfile" --user=UNKNOWN_MYSQL_USER --connect-timeout="${CHECKSOCKETTIMEOUT:-10}" ping 2>&1` - if [ $? -qe 0 ] || echo "$response" | grep -q "Access denied for user" ; then + if [ $? -eq 0 ] || echo "$response" | grep -q "Access denied for user" ; then echo "Is another MySQL daemon already running with the same unix socket?" >&2 echo "Please, stop the process using the socket $socketfile or remove the file manually to start the service." >&2 exit 1