use postinst instead of prerm
This commit is contained in:
parent
1d902759cf
commit
6174521123
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
0
debian/preinst → debian/postinst
vendored
0
debian/preinst → debian/postinst
vendored
8
debian/prerm
vendored
8
debian/prerm
vendored
|
@ -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#
|
|
Loading…
Reference in a new issue