Fix: restart of mysql for opensuse

This commit is contained in:
Laurent Destailleur 2013-10-29 22:57:51 +01:00
parent f5387081e0
commit 5fbb967941
2 changed files with 9 additions and 1 deletions

View File

@ -454,7 +454,11 @@ echo Restart mysql server
/sbin/service mysqld restart
%else
%if 0%{?suse_version}
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart
else
/sbin/service mysql restart
fi
%else
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart

View File

@ -286,7 +286,11 @@ fi
# Restart mysql
echo Restart mysql
/sbin/service mysql restart
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart
else
/sbin/service mysql restart
fi
# Show result
echo