fix debhelper scripts and revert other changes to -5

This commit is contained in:
Jan Wagner 2007-03-08 10:26:35 +00:00
parent 09f8c009bf
commit f54be892ca
4 changed files with 10 additions and 7 deletions

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
ps-watcher (1.06-6) unstable; urgency=medium
* fix prerm and postinst to prevent trouble when updating
-- Jan Wagner <waja@cyconet.org> Thu, 8 Mar 2007 09:20:58 +0100
ps-watcher (1.06-5) unstable; urgency=medium
* fix typo in init script which prevents from start

2
debian/copyright vendored
View file

@ -26,5 +26,5 @@ License:
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL file.
The Debian packaging is (C) 2006, 2007 Jan Wagner <waja@cyconet.org> and
The Debian packaging is (C) 2006, Jan Wagner <waja@cyconet.org> and
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

5
debian/postinst vendored
View file

@ -6,7 +6,8 @@ then
fi
if [ -x "/etc/init.d/ps-watcher" ]; then
if [ "$startup" = "1" ] && [ -f $CONFIG ]; then
update-rc.d ps-watcher defaults 40 >/dev/null
if [ "$startup" = "1" ] && [ -f "/etc/default/pswatcher" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d ps-watcher start || exit $?
else
@ -14,5 +15,3 @@ if [ -x "/etc/init.d/ps-watcher" ]; then
fi
fi
fi
#DEBHELPER#

4
debian/prerm vendored
View file

@ -5,12 +5,10 @@ then
. /etc/default/ps-watcher
fi
if [ -x "/etc/init.d/ps-watcher" ] && [ "$startup" = "1" ] && [ -f $CONFIG ]; then
if [ -x "/etc/init.d/ps-watcher" ] && [ "$startup" = "1" ] && [ -f "/etc/default/pswatcher" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d ps-watcher stop || exit $?
else
/etc/init.d/ps-watcher stop || exit $?
fi
fi
#DEBHELPER#