Add lighttpd user (OS dependent) to sudoers file

This commit is contained in:
DL6ER 2016-12-22 13:26:11 +01:00
parent 4626b8ced5
commit 60054da582
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -801,6 +801,8 @@ installPiholeWeb() {
echo -n "::: Installing sudoer file..." echo -n "::: Installing sudoer file..."
mkdir -p /etc/sudoers.d/ mkdir -p /etc/sudoers.d/
cp /etc/.pihole/advanced/pihole.sudo /etc/sudoers.d/pihole cp /etc/.pihole/advanced/pihole.sudo /etc/sudoers.d/pihole
# Add lighttpd user (OS dependent) to sudoers file
echo "${LIGHTTPD_USER} ALL=NOPASSWD: /usr/local/bin/pihole" >> /etc/sudoers.d/pihole
chmod 0440 /etc/sudoers.d/pihole chmod 0440 /etc/sudoers.d/pihole
echo " done!" echo " done!"
} }