use postinst instead of prerm

This commit is contained in:
Jan Wagner 2007-07-06 21:16:07 +00:00
parent 1d902759cf
commit 6174521123
3 changed files with 2 additions and 10 deletions

4
debian/changelog vendored
View file

@ -1,9 +1,9 @@
ps-watcher (1.06-7) unstable; urgency=low ps-watcher (1.06-7) unstable; urgency=low
* update copyright * update copyright
* use native debhelper postinst script * use native debhelper prerm script
* make start-stop-daemon working instead of using kill * make start-stop-daemon working instead of using kill
* providing upgrade path via prerm * providing upgrade path via postinst
-- Jan Wagner <waja@cyconet.org> Wed, 4 Jul 2007 12:26:57 +0200 -- Jan Wagner <waja@cyconet.org> Wed, 4 Jul 2007 12:26:57 +0200

View file

8
debian/prerm vendored
View file

@ -1,8 +0,0 @@
#!/bin/sh
set -e
# generate correct pid file, for versions where was non or incorrect
if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" <= "1.06-6"; then
ps aux | grep /usr/bin/ps-watcher | head -1 | awk '{ print $2 }' > /var/run/ps-watcher.pid
fi
#DEBHELPER#