Fix: rpm packages

This commit is contained in:
Laurent Destailleur 2013-07-24 12:15:24 +02:00
parent 2f2f2b66c4
commit 7ae06c6f45
3 changed files with 11 additions and 3 deletions

View File

@ -463,9 +463,16 @@ echo Restart mysql server
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mdkversion}
/sbin/service mysqld restart
%else
%if 0%{?suse_version}
/sbin/service mysql restart
%else
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart
fi
if [ -f /etc/init.d/mysql ]; then
/etc/init.d/mysql restart
fi
%endif
%endif
# Show result

View File

@ -280,6 +280,9 @@ echo Restart mysql
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart
fi
if [ -f /etc/init.d/mysql ]; then
/etc/init.d/mysql restart
fi
# Show result
echo

View File

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