mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-27 01:30:18 +00:00
Merge pull request #469 from pi-hole/web-sudo
Give WebUI permissions to run pihole commands
This commit is contained in:
commit
a16cd9aef7
3 changed files with 20 additions and 2 deletions
|
@ -638,6 +638,11 @@ installPiholeWeb() {
|
|||
$SUDO cp /etc/.pihole/advanced/index.* /var/www/html/pihole/.
|
||||
$SUDO echo " done!"
|
||||
fi
|
||||
# Install Sudoer file
|
||||
echo -n "::: Installing sudoer file..."
|
||||
$SUDO cp /etc/.pihole/advanced/pihole.sudo /etc/sudoers.d/pihole
|
||||
$SUDO chmod 0440 /etc/sudoers.d/pihole
|
||||
echo " done!"
|
||||
}
|
||||
|
||||
installCron() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue