Fix: rpm packages

Conflicts:
	build/rpm/dolibarr_generic.spec
This commit is contained in:
Laurent Destailleur 2013-07-24 13:46:50 +02:00
parent c24659b3a5
commit e8400afeba
3 changed files with 17 additions and 5 deletions

View File

@ -448,11 +448,22 @@ if [ -f %{_sysconfdir}/init.d/apache2 ]; then
%{_sysconfdir}/init.d/apache2 restart %{_sysconfdir}/init.d/apache2 restart
fi fi
# Restart mysql # Restart mysql server
echo Restart mysql 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 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
# Show result # Show result
echo echo

View File

@ -278,6 +278,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

View File

@ -286,9 +286,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