Skip to content

Commit

Permalink
Fix: rpm packages
Browse files Browse the repository at this point in the history
Conflicts:
	build/rpm/dolibarr_generic.spec
  • Loading branch information
eldy committed Jul 24, 2013
1 parent c24659b commit e8400af
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
15 changes: 13 additions & 2 deletions build/rpm/dolibarr_generic.spec
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions build/rpm/dolibarr_mandriva.spec
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions build/rpm/dolibarr_opensuse.spec
Expand Up @@ -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
Expand Down

0 comments on commit e8400af

Please sign in to comment.