mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-28 16:14:07 +02:00
v5 sudoers file that allowed www-data to run pihole command is no longer needed. "Fixes" #6066
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
65b42c1c8f
commit
f98b9520e4
@ -2411,6 +2411,15 @@ main() {
|
|||||||
# Migrate existing install to v6.0
|
# Migrate existing install to v6.0
|
||||||
migrate_dnsmasq_configs
|
migrate_dnsmasq_configs
|
||||||
|
|
||||||
|
# Cleanup old v5 sudoers file if it exists
|
||||||
|
sudoers_file="/etc/sudoers.d/pihole"
|
||||||
|
if [[ -f "${sudoers_file}" ]]; then
|
||||||
|
# only remove the file if it contains the Pi-hole header
|
||||||
|
if grep -q "Pi-hole: A black hole for Internet advertisements" "${sudoers_file}"; then
|
||||||
|
rm -f "${sudoers_file}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for and disable systemd-resolved-DNSStubListener before reloading resolved
|
# Check for and disable systemd-resolved-DNSStubListener before reloading resolved
|
||||||
# DNSStubListener needs to remain in place for installer to download needed files,
|
# DNSStubListener needs to remain in place for installer to download needed files,
|
||||||
# so this change needs to be made after installation is complete,
|
# so this change needs to be made after installation is complete,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user