mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-03 23:38:29 +00:00
Assure that Lighttpd conf-enabled symlink is removed (#5974)
This commit is contained in:
commit
ce18de3d6d
1 changed files with 4 additions and 4 deletions
|
@ -1208,12 +1208,12 @@ remove_old_pihole_lighttpd_configs() {
|
||||||
lighty-disable-mod pihole-admin >/dev/null || true
|
lighty-disable-mod pihole-admin >/dev/null || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "${confavailable}" ]]; then
|
if [[ -f "${confenabled}" || -L "${confenabled}" ]]; then
|
||||||
rm "${confavailable}"
|
rm "${confenabled}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "${confenabled}" ]]; then
|
if [[ -f "${confavailable}" ]]; then
|
||||||
rm "${confenabled}"
|
rm "${confavailable}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue