Skip to content

Commit

Permalink
Only search for "OVERWRITTEN BY PI-HOLE" when checking inside `lightt…
Browse files Browse the repository at this point in the history
…pd.conf` (#5167)
  • Loading branch information
PromoFaux committed Feb 10, 2023
2 parents 741717a + c65ea9c commit d86b325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automated install/basic-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ installConfigs() {
mkdir -p /run/lighttpd
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} /run/lighttpd

if grep -q -F "FILE WILL BE OVERWRITTEN BY PI-HOLE" "${lighttpdConfig}"; then
if grep -q -F "OVERWRITTEN BY PI-HOLE" "${lighttpdConfig}"; then
# Attempt to preserve backwards compatibility with older versions
install -D -m 644 -T ${PI_HOLE_LOCAL_REPO}/advanced/${LIGHTTPD_CFG} "${lighttpdConfig}"
# Make the directories if they do not exist and set the owners
Expand Down

0 comments on commit d86b325

Please sign in to comment.