Fix for MariaDB listing

This commit is contained in:
Serghey Rodin 2015-10-21 20:49:50 +03:00
commit 7a1975ce39

View file

@ -170,10 +170,15 @@ fi
service=$DB_SYSTEM
if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
for db in ${DB_SYSTEM//,/ }; do
db_proc_name=''
service="$db"
if [ "$service" = 'mysql' ]; then
if [ -e "/etc/redhat-release" ]; then
service='mysqld'
db_proc_name='mysqld'
if [ -e "/usr/lib/systemd/system/mariadb.service" ]; then
service='mariadb'
fi
fi
fi
if [ "$service" == 'pgsql' ]; then