#7 Fix typo
Merged 6 months ago by mschorm. Opened 6 months ago by jedix.
rpms/ jedix/mariadb master  into  master

Fix typo
Jens Rey • 6 months ago  
file modified
+1 -1

@@ -26,7 +26,7 @@ 

  

      # 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

There is a typo in mysql-check-socket (-qe instead of -eq) which leads to the following error when the script is being executed:

/usr/libexec/mysql-check-socket: line 29: [: -qe: binary operator expected

Pull-Request has been merged by mschorm

6 months ago

Merged to all Fedora versions now. (f27..Rawhide)