usage of dh_installinit fixed

This commit is contained in:
lars 2006-05-30 19:00:34 +00:00
parent 81adf89c56
commit b8e3cf4ea8
3 changed files with 3 additions and 12 deletions

2
debian/control vendored
View File

@ -1,7 +1,7 @@
Source: cryptobox Source: cryptobox
Section: admin Section: admin
Priority: extra Priority: extra
Maintainer: sense.lab development <senselab@systemausfall.org> Maintainer: Lars Kruse <devel@sumpfralle.de>
Build-Depends: debhelper (>>3.0.0), dpatch, gcc (>=2.95) Build-Depends: debhelper (>>3.0.0), dpatch, gcc (>=2.95)
Standards-Version: 3.6.2 Standards-Version: 3.6.2

9
debian/postinst vendored
View File

@ -37,14 +37,7 @@ chmod 4750 "/usr/lib/cryptobox/cryptobox_root_wrapper"
chown $CRYPTOBOX_USER: "/usr/lib/cgi-bin/cryptobox" chown $CRYPTOBOX_USER: "/usr/lib/cgi-bin/cryptobox"
chmod 6755 "/usr/lib/cgi-bin/cryptobox" chmod 6755 "/usr/lib/cgi-bin/cryptobox"
if [ -x "/etc/init.d/cryptobox" ]; then #DEBHELPER#
update-rc.d cryptobox defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d cryptobox start || exit $?
else
/etc/init.d/cryptobox start || exit $?
fi
fi
true true

4
debian/postrm vendored
View File

@ -6,9 +6,7 @@ if test "$1" = "purge" && getent passwd cryptobox 2>/dev/null >/dev/null \
userdel -r cryptobox userdel -r cryptobox
fi fi
if [ "$1" = "purge" ] ; then #DEBHELPER#
update-rc.d cryptobox remove >/dev/null || exit $?
fi
# return without error # return without error
true true