mirror of
https://github.com/pi-hole/pi-hole
synced 2025-02-15 09:31:59 +00:00
Remove outdated dns-servers.conf
Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
parent
7dbf408c26
commit
0da97e762f
@ -1279,13 +1279,6 @@ installConfigs() {
|
|||||||
# Ensure that permissions are correctly set
|
# Ensure that permissions are correctly set
|
||||||
chown -R pihole:pihole /etc/pihole
|
chown -R pihole:pihole /etc/pihole
|
||||||
|
|
||||||
# Install list of DNS servers
|
|
||||||
# Format: Name;Primary IPv4;Secondary IPv4;Primary IPv6;Secondary IPv6
|
|
||||||
# Some values may be empty (for example: DNS servers without IPv6 support)
|
|
||||||
echo "${DNS_SERVERS}" >"${PI_HOLE_CONFIG_DIR}/dns-servers.conf"
|
|
||||||
chmod 644 "${PI_HOLE_CONFIG_DIR}/dns-servers.conf"
|
|
||||||
chown pihole:pihole "${PI_HOLE_CONFIG_DIR}/dns-servers.conf"
|
|
||||||
|
|
||||||
# Install empty custom.list file if it does not exist
|
# Install empty custom.list file if it does not exist
|
||||||
if [[ ! -r "${PI_HOLE_CONFIG_DIR}/hosts/custom.list" ]]; then
|
if [[ ! -r "${PI_HOLE_CONFIG_DIR}/hosts/custom.list" ]]; then
|
||||||
if ! install -D -T -o pihole -g pihole -m 660 /dev/null "${PI_HOLE_CONFIG_DIR}/hosts/custom.list" &>/dev/null; then
|
if ! install -D -T -o pihole -g pihole -m 660 /dev/null "${PI_HOLE_CONFIG_DIR}/hosts/custom.list" &>/dev/null; then
|
||||||
|
@ -119,11 +119,6 @@ def test_installPihole_fresh_install_readableFiles(host):
|
|||||||
assert exit_status_success == actual_rc
|
assert exit_status_success == actual_rc
|
||||||
check_leases = test_cmd.format("w", "/etc/pihole/dhcp.leases", piholeuser)
|
check_leases = test_cmd.format("w", "/etc/pihole/dhcp.leases", piholeuser)
|
||||||
actual_rc = host.run(check_leases).rc
|
actual_rc = host.run(check_leases).rc
|
||||||
# readable dns-servers.conf
|
|
||||||
assert exit_status_success == actual_rc
|
|
||||||
check_servers = test_cmd.format("r", "/etc/pihole/dns-servers.conf", piholeuser)
|
|
||||||
actual_rc = host.run(check_servers).rc
|
|
||||||
assert exit_status_success == actual_rc
|
|
||||||
# readable install.log
|
# readable install.log
|
||||||
check_install = test_cmd.format("r", "/etc/pihole/install.log", piholeuser)
|
check_install = test_cmd.format("r", "/etc/pihole/install.log", piholeuser)
|
||||||
actual_rc = host.run(check_install).rc
|
actual_rc = host.run(check_install).rc
|
||||||
|
Loading…
Reference in New Issue
Block a user