cryptonas/DEBIAN/postinst

20 lines
626 B
Plaintext
Raw Normal View History

#!/bin/sh
# add the cryptobox startup script to /etc/rc?.d
2005-12-01 19:22:05 +01:00
update-rc.d cryptobox defaults 98
2005-12-01 20:20:36 +01:00
invoke-rc.d cryptobox restart
if grep -q "cryptobox package.*HEADER" /etc/sudoers
then true
else echo "Adding a new (disabled) entry to /etc/sudoers"
cat >>/etc/sudoers <<-EOF
######### Automatically inserted by cryptobox package - do not remove - HEADER ######
# read /usr/share/doc/cryptobox/SECURITY carefully before enabling the following line
#www-data ALL=NOPASSWD:/usr/lib/cryptobox/cbox-root-actions.sh
######### Automatically inserted by cryptobox package - do not remove - FOOTER ######
EOF
fi
2005-12-01 20:20:36 +01:00
true