From 77ab09a73ae0a8dc341fd1aa84a76cb0b1361354 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 20 Oct 2016 13:10:53 +0200 Subject: [PATCH] FIX: old doraemon doesn't get stopped during upgrades --- doraemon.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doraemon.spec b/doraemon.spec index 6a1be9c..c918744 100644 --- a/doraemon.spec +++ b/doraemon.spec @@ -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 @@ -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