Commit 355cd010 authored by helmo's avatar helmo

Revert "Issue #2539124 by helmo: Sudo example missing in minimalistic debian install"

This reverts commit cd5ce3e3.
parent cd5ce3e3
aegir3-provision: non-standard-dir-in-var var/aegir/
aegir3-provision: non-standard-file-perm etc/sudoers.d/aegir 0440 != 0644
......@@ -39,6 +39,15 @@ case "$1" in
fi
adduser --quiet aegir www-data
if [ -d /etc/sudoers.d ]; then
ucf --debconf-ok /usr/share/doc/aegir3-provision/examples/example.sudoers /etc/sudoers.d/aegir
ucfr aegir-provision /etc/sudoers.d/aegir
chmod 440 /etc/sudoers.d/aegir
else
echo "running an older version of sudo"
echo "copy content of /usr/share/doc/aegir3-provision/examples/example.sudoers into /etc/sudoers for aegir to run properly"
fi
# fix permissions on installed directories
chown aegir:aegir "$VARLIB"
......
......@@ -17,9 +17,6 @@ override_dh_install:
cp "$(CURDIR)/debian/aegir3-provision.lintian" "$(CURDIR)/debian/aegir3-provision/usr/share/lintian/overrides/aegir3-provision"
install -o root -g root -m 0440 example.sudoers \
debian/sudo/etc/sudoers.d/aegir
override_dh_installinit:
dh_installinit --name=hosting-queued
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment