Fix: rpm packages
This commit is contained in:
parent
2f2f2b66c4
commit
7ae06c6f45
@ -463,9 +463,16 @@ echo Restart mysql server
|
|||||||
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mdkversion}
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mdkversion}
|
||||||
/sbin/service mysqld restart
|
/sbin/service mysqld restart
|
||||||
%else
|
%else
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
/sbin/service mysql restart
|
||||||
|
%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
|
||||||
fi
|
fi
|
||||||
|
if [ -f /etc/init.d/mysql ]; then
|
||||||
|
/etc/init.d/mysql restart
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Show result
|
# Show result
|
||||||
|
|||||||
@ -280,6 +280,9 @@ echo Restart mysql
|
|||||||
if [ -f /etc/init.d/mysqld ]; then
|
if [ -f /etc/init.d/mysqld ]; then
|
||||||
/etc/init.d/mysqld restart
|
/etc/init.d/mysqld restart
|
||||||
fi
|
fi
|
||||||
|
if [ -f /etc/init.d/mysql ]; then
|
||||||
|
/etc/init.d/mysql restart
|
||||||
|
fi
|
||||||
|
|
||||||
# Show result
|
# Show result
|
||||||
echo
|
echo
|
||||||
|
|||||||
@ -288,9 +288,7 @@ fi
|
|||||||
|
|
||||||
# Restart mysql
|
# Restart mysql
|
||||||
echo Restart mysql
|
echo Restart mysql
|
||||||
if [ -f /etc/init.d/mysqld ]; then
|
/sbin/service mysql restart
|
||||||
/etc/init.d/mysqld restart
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Show result
|
# Show result
|
||||||
echo
|
echo
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user