Skip to content

Commit

Permalink
Fix: Build for obs
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 1, 2014
1 parent 95793a5 commit f1466e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 10 additions & 2 deletions build/rpm/dolibarr_generic.spec
Expand Up @@ -305,6 +305,11 @@ done >>%{name}.lang
%post

echo Run post script of packager dolibarr_generic.spec
echo Detected constant fedora=0%{?fedora}
echo Detected constant rhel_version=0%{?rhel_version}
echo Detected constant centos_version=0%{?centos_version}
echo Detected constant mdkversion=0%{?mdkversion}
echo Detected constant suse_version=0%{?suse_version}

# Define vars
export docdir="/var/lib/dolibarr/documents"
Expand Down Expand Up @@ -465,9 +470,12 @@ echo Restart mysql server
%else
%if 0%{?suse_version}
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart
else
/sbin/service mysqld restart
#/etc/init.d/mysqld restart
fi
if [ -f /etc/init.d/mysql ]; then
/sbin/service mysql restart
#/etc/init.d/mysql restart
fi
%else
if [ -f /etc/init.d/mysqld ]; then
Expand Down
5 changes: 3 additions & 2 deletions build/rpm/dolibarr_opensuse.spec
Expand Up @@ -289,8 +289,9 @@ fi
# Restart mysql
echo Restart mysql
if [ -f /etc/init.d/mysqld ]; then
/etc/init.d/mysqld restart
else
/sbin/service mysqld restart
fi
if [ -f /etc/init.d/mysql ]; then
/sbin/service mysql restart
fi

Expand Down

0 comments on commit f1466e6

Please sign in to comment.