mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +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
1 changed files with 1 additions and 1 deletions
|
@ -1010,7 +1010,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
|
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
|
fi
|
||||||
|
|
||||||
if [[ -f "${condfd}" ]]; then
|
if [[ -f "${condfd}" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue