Fixes #1407 : probleme deploiement inclusion alternc-sudoers
This commit is contained in:
parent
c0ae2526dc
commit
c0aaa47acd
|
@ -240,14 +240,24 @@ EOF
|
||||||
# Apache will not start without this file
|
# Apache will not start without this file
|
||||||
touch /var/alternc/apache-vhost/vhosts_all.conf
|
touch /var/alternc/apache-vhost/vhosts_all.conf
|
||||||
|
|
||||||
#sudo stuff allowing alterncpanel to use quota
|
#sudo stuff allowing alterncpanel to use quota
|
||||||
if [ -d /etc/sudoers.d ]; then
|
if [ -d /etc/sudoers.d ]; then
|
||||||
cp /etc/alternc/alternc-sudoers /etc/sudoers.d/alternc-sudoers
|
cp /etc/alternc/alternc-sudoers /etc/sudoers.d/alternc-sudoers
|
||||||
chmod 0440 /etc/sudoers.d/alternc-sudoers
|
chmod 0440 /etc/sudoers.d/alternc-sudoers
|
||||||
else
|
if ! grep -q '#includedir /etc/sudoers.d' "/etc/sudoers"; then
|
||||||
echo "running an older version of sudo"
|
echo "*************************************************"
|
||||||
#FIXME
|
echo "* /!\ WARNING /!\ *"
|
||||||
echo "copy content of /usr/share/doc/examples/example.sudoers into /etc/sudoers.d for to run properly"
|
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 to run properly"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# important: postinst freezes without that:
|
# important: postinst freezes without that:
|
||||||
|
|
Loading…
Reference in New Issue