mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Escape the sed command for removing a line in fed/centos lighttpd.conf
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
d5013bfd6c
commit
c39cb8cfe0
@ -1010,7 +1010,7 @@ remove_old_pihole_lighttpd_configs() {
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user