Explorar el Código

Fix for MariaDB Service Detection

Newer versions of MariaDB use "mariadb" as name instead of "mysql".
Alexandros Ioannides hace 5 años
padre
commit
7a4f43bb09
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      bin/v-list-sys-services

+ 3 - 3
bin/v-list-sys-services

@@ -227,9 +227,9 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
             if [ -d "/etc/sysconfig" ]; then
             if [ -d "/etc/sysconfig" ]; then
                 service='mysqld'
                 service='mysqld'
                 proc_name='mysqld'
                 proc_name='mysqld'
-                if [ -e "/usr/lib/systemd/system/mariadb.service" ]; then
-                    service='mariadb'
-                fi
+            fi
+            if [ -e "/usr/lib/systemd/system/mariadb.service" ]; then
+                service='mariadb'
             fi
             fi
         fi
         fi
         if [ "$service" == 'pgsql' ]; then
         if [ "$service" == 'pgsql' ]; then