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/prerm | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'DEBIAN/prerm') diff --git a/DEBIAN/prerm b/DEBIAN/prerm index 99a4f6a..84e2bbd 100755 --- a/DEBIAN/prerm +++ b/DEBIAN/prerm @@ -1,18 +1,16 @@ -#!/bin/sh - +# deb prerm 2017-01-26 thisservice=keepalive.service - +{ case "${1}" in - upgrade) - # This prerm upgrade is running because a newer version of this package is being installed. - # $2 is new-version-number - [ ] - ;; remove) - # No new package being installed. Just remove it. - systemctl stop "${thisservice}" 1>/dev/null 2>&1 - systemctl disable "${thisservice}" 1>/dev/null 2>&1 + # Final removal. + systemctl stop "${thisservice}" + systemctl disable "${thisservice}" + ;; + upgrade) + # Upgrade. $2 is new-version-number + : ;; esac - +} 1>/dev/null 2>&1 exit 0 -- cgit