--- scripts/rbh-config 2016-09-12 10:50:28.152783000 +0200 +++ scripts/rbh-config-fixed 2017-08-15 09:47:43.725870380 +0200 @@ -32,14 +32,7 @@ fi echo "mysqladmin command OK." - if [[ ! -x `which mysql_config` ]]; then - echo "Command 'mysql_config' not found." - echo "Install 'mysql' package on your system." - exit 2 - fi - echo "mysql_config command OK." - - version=`mysql_config --version | cut -d . -f 1` + version=`mysqld --version | cut -d . -f 1` if (( $? )); then echo "Error executing 'mysql_config --version'." exit 2 @@ -51,7 +44,12 @@ if [ -x /etc/init.d/mysql ]; then service=mysql fi - rpm -q mariadb > /dev/null && service=mariadb + if [ -f /usr/lib/systemd/system/mysql.service ] ; then + service=mysql + fi + if [ -f /usr/lib/systemd/system/mariadb.service ] ; then + service=mariadb + fi running=0 echo "Checking service $service..." if [ -x /usr/bin/systemctl ]; then