FIX: old doraemon doesn't get stopped during upgrades

This commit is contained in:
Paolo Asperti 2016-10-20 13:10:53 +02:00
parent 28d81f3a29
commit 77ab09a73a
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Summary: Helps client to join domain and maintain itself
Name: doraemon
Version: 2.0.0
Release: 7.ns6
Release: 8.ns6
URL: https://github.com/bglug-it/doraemon/
License: GPLv2+
Packager: Paolo Asperti <paolo@asperti.com>
@ -41,6 +41,7 @@ mkdir -p %{buildroot}%{_localstatedir}/cache/doraemon
#fi
if [ "$1" = 2 ]; then
#upgrade
/sbin/service %{name} stop >/dev/null 2>&1 || :
/sbin/stop %{name} >/dev/null 2>&1 || :
DATABASE=/var/lib/doraemon/doraemon.db
INI=/etc/doraemon.ini