Skip to content
Snippets Groups Projects
Commit 5fbb9679 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: restart of mysql for opensuse

parent f5387081
No related branches found
No related tags found
No related merge requests found
...@@ -454,7 +454,11 @@ echo Restart mysql server ...@@ -454,7 +454,11 @@ echo Restart mysql server
/sbin/service mysqld restart /sbin/service mysqld restart
%else %else
%if 0%{?suse_version} %if 0%{?suse_version}
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart
else
/sbin/service mysql restart /sbin/service mysql restart
fi
%else %else
if [ -f /etc/init.d/mysqld ]; then if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart /etc/init.d/mysqld restart
......
...@@ -286,7 +286,11 @@ fi ...@@ -286,7 +286,11 @@ fi
# Restart mysql # Restart mysql
echo Restart mysql echo Restart mysql
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart
else
/sbin/service mysql restart /sbin/service mysql restart
fi
# Show result # Show result
echo echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment