Update automated install/basic-install.sh

Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2023-06-13 19:08:12 +01:00
parent c39cb8cfe0
commit 001f2012a2
No known key found for this signature in database

View file

@ -1009,9 +1009,7 @@ remove_old_pihole_lighttpd_configs() {
if [[ -d "/etc/lighttpd/conf.d" ]]; then if [[ -d "/etc/lighttpd/conf.d" ]]; then
if grep -q -F 'include "/etc/lighttpd/conf.d/pihole-admin.conf"' "${lighttpdConfig}"; then
sed -i '/include "\/etc\/lighttpd\/conf.d\/pihole-admin.conf"/d' "${lighttpdConfig}" sed -i '/include "\/etc\/lighttpd\/conf.d\/pihole-admin.conf"/d' "${lighttpdConfig}"
fi
if [[ -f "${condfd}" ]]; then if [[ -f "${condfd}" ]]; then
rm "${condfd}" rm "${condfd}"