#!/bin/sh # add the cryptobox startup script to /etc/rc?.d update-rc.d cryptobox defaults 98 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 true