Robinhood is versatile file policy engine for big filesystem, see FATE#323855 OBS-URL: https://build.opensuse.org/request/show/517201 OBS-URL: https://build.opensuse.org/package/show/network:cluster/robinhood?expand=0&rev=1
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
--- 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
|