瀏覽代碼

Fix for MariaDB Service Detection

Newer versions of MariaDB use "mariadb" as name instead of "mysql".
Alexandros Ioannides 5 年之前
父節點
當前提交
7a4f43bb09
共有 1 個文件被更改,包括 3 次插入3 次删除
  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
                 service='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
         if [ "$service" == 'pgsql' ]; then