aboutsummaryrefslogtreecommitdiff
path: root/DEBIAN/prerm
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2017-01-26 13:49:51 -0500
committerB Stack <bgstack15@gmail.com>2017-01-26 13:49:51 -0500
commite072a01fe6d146b078975cfa205d617ff70d9fe0 (patch)
treee2df6971c52a76986d6c9c034651d029eee1487b /DEBIAN/prerm
parentmajor revision to 1.0-7 is in progress (diff)
downloadkeepalive-e072a01fe6d146b078975cfa205d617ff70d9fe0.tar.gz
keepalive-e072a01fe6d146b078975cfa205d617ff70d9fe0.tar.bz2
keepalive-e072a01fe6d146b078975cfa205d617ff70d9fe0.zip
updated deb and rpm to 1.0-7
Diffstat (limited to 'DEBIAN/prerm')
-rwxr-xr-xDEBIAN/prerm22
1 files changed, 10 insertions, 12 deletions
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
bgstack15