usage of dh_installinit fixed
This commit is contained in:
parent
81adf89c56
commit
b8e3cf4ea8
3 changed files with 3 additions and 12 deletions
2
debian/control
vendored
2
debian/control
vendored
|
@ -1,7 +1,7 @@
|
|||
Source: cryptobox
|
||||
Section: admin
|
||||
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)
|
||||
Standards-Version: 3.6.2
|
||||
|
||||
|
|
9
debian/postinst
vendored
9
debian/postinst
vendored
|
@ -37,14 +37,7 @@ chmod 4750 "/usr/lib/cryptobox/cryptobox_root_wrapper"
|
|||
chown $CRYPTOBOX_USER: "/usr/lib/cgi-bin/cryptobox"
|
||||
chmod 6755 "/usr/lib/cgi-bin/cryptobox"
|
||||
|
||||
if [ -x "/etc/init.d/cryptobox" ]; then
|
||||
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
|
||||
#DEBHELPER#
|
||||
|
||||
true
|
||||
|
||||
|
|
4
debian/postrm
vendored
4
debian/postrm
vendored
|
@ -6,9 +6,7 @@ if test "$1" = "purge" && getent passwd cryptobox 2>/dev/null >/dev/null \
|
|||
userdel -r cryptobox
|
||||
fi
|
||||
|
||||
if [ "$1" = "purge" ] ; then
|
||||
update-rc.d cryptobox remove >/dev/null || exit $?
|
||||
fi
|
||||
#DEBHELPER#
|
||||
|
||||
# return without error
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue