diff options
author | B Stack <bgstack15@gmail.com> | 2017-01-26 13:49:51 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2017-01-26 13:49:51 -0500 |
commit | e072a01fe6d146b078975cfa205d617ff70d9fe0 (patch) | |
tree | e2df6971c52a76986d6c9c034651d029eee1487b /DEBIAN/preinst | |
parent | major revision to 1.0-7 is in progress (diff) | |
download | keepalive-e072a01fe6d146b078975cfa205d617ff70d9fe0.tar.gz keepalive-e072a01fe6d146b078975cfa205d617ff70d9fe0.tar.bz2 keepalive-e072a01fe6d146b078975cfa205d617ff70d9fe0.zip |
updated deb and rpm to 1.0-7
Diffstat (limited to 'DEBIAN/preinst')
-rwxr-xr-x | DEBIAN/preinst | 14 |
1 files changed, 7 insertions, 7 deletions
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 |