|
|
|
@ -1008,27 +1008,25 @@ remove_old_pihole_lighttpd_configs() {
|
|
|
|
|
local confenabled="/etc/lighttpd/conf-enabled/15-pihole-admin.conf"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -d "/etc/lighttpd/conf.d" ]]; then
|
|
|
|
|
if [[ -f "${lighttpdConfig}" ]]; then
|
|
|
|
|
sed -i '/include "\/etc\/lighttpd\/conf.d\/pihole-admin.conf"/d' "${lighttpdConfig}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [[ -f "${condfd}" ]]; then
|
|
|
|
|
rm "${condfd}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [[ -f "${condfd}" ]]; then
|
|
|
|
|
rm "${condfd}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
elif [[ -d "/etc/lighttpd/conf-available" ]]; then
|
|
|
|
|
if is_command lighty-disable-mod ; then
|
|
|
|
|
lighty-disable-mod pihole-admin > /dev/null || true
|
|
|
|
|
fi
|
|
|
|
|
if is_command lighty-disable-mod ; then
|
|
|
|
|
lighty-disable-mod pihole-admin > /dev/null || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [[ -f "${confavailable}" ]]; then
|
|
|
|
|
rm "${confavailable}"
|
|
|
|
|
fi
|
|
|
|
|
if [[ -f "${confavailable}" ]]; then
|
|
|
|
|
rm "${confavailable}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [[ -f "${confenabled}" ]]; then
|
|
|
|
|
rm "${confenabled}"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
if [[ -f "${confenabled}" ]]; then
|
|
|
|
|
rm "${confenabled}"
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Clean an existing installation to prepare for upgrade/reinstall
|
|
|
|
|