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

Fix: rpm packages

Conflicts:
	build/rpm/dolibarr_generic.spec
parent c24659b3
No related branches found
No related tags found
No related merge requests found
......@@ -448,11 +448,22 @@ if [ -f %{_sysconfdir}/init.d/apache2 ]; then
%{_sysconfdir}/init.d/apache2 restart
fi
# Restart mysql
echo Restart mysql
# Restart mysql server
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
echo
......
......@@ -278,6 +278,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
......
......@@ -286,9 +286,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment