From e072a01fe6d146b078975cfa205d617ff70d9fe0 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 26 Jan 2017 13:49:51 -0500 Subject: updated deb and rpm to 1.0-7 --- DEBIAN/preinst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'DEBIAN/preinst') diff --git a/DEBIAN/preinst b/DEBIAN/preinst index 75ff571..afa9350 100755 --- a/DEBIAN/preinst +++ b/DEBIAN/preinst @@ -1,17 +1,17 @@ #!/bin/sh +# deb pre 2017-01-26 #https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html thisservice=keepalive.service - +{ case "${1}" in upgrade) - # This preinst is being run before an upgrade. - # $2 is old-version-number - systemctl stop keepalive.service 1>/dev/null 2>&1 + # Upgrade. $2 is old-version-number. + systemctl stop ${thiservice} ;; install) - # Brand new installation of the package. - [ ] + # New install. + : ;; esac - +} 1>/dev/null 2>&1 exit 0 -- cgit