2005-11-30 03:39:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# add the cryptobox startup script to /etc/rc?.d
|
2005-12-01 18:22:05 +00:00
|
|
|
update-rc.d cryptobox defaults 98
|
2005-11-30 03:39:17 +00:00
|
|
|
|
2005-12-01 19:20:36 +00:00
|
|
|
invoke-rc.d cryptobox restart
|
|
|
|
|
2005-12-12 22:32:22 +00:00
|
|
|
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 19:20:36 +00:00
|
|
|
true
|