Fixes #1407 : probleme deploiement inclusion alternc-sudoers

This commit is contained in:
Axel ROGER 2013-01-22 10:17:15 +00:00
parent c0ae2526dc
commit c0aaa47acd
1 changed files with 18 additions and 8 deletions

View File

@ -244,10 +244,20 @@ EOF
if [ -d /etc/sudoers.d ]; then
cp /etc/alternc/alternc-sudoers /etc/sudoers.d/alternc-sudoers
chmod 0440 /etc/sudoers.d/alternc-sudoers
if ! grep -q '#includedir /etc/sudoers.d' "/etc/sudoers"; then
echo "*************************************************"
echo "* /!\ WARNING /!\ *"
echo "* Please add yourself the following directive : *"
echo "* #includedir /etc/sudoers.d *"
echo "* in file /etc/sudoers (use sudoedit command) *"
echo "* Else you'll have troubles with some features *"
echo "* of AlternC *"
echo "*************************************************"
fi
else
echo "running an older version of sudo"
#FIXME
echo "copy content of /usr/share/doc/examples/example.sudoers into /etc/sudoers.d for to run properly"
echo "copy content of /usr/share/doc/examples/example.sudoers into /etc/sudoers.d to run properly"
fi
# important: postinst freezes without that: