Change touch that would always fire to install.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2022-03-31 14:23:39 -07:00
parent 2f38452565
commit c2384ecc6f
No known key found for this signature in database
GPG key ID: 6055EE2AD4004FC0

View file

@ -1333,8 +1333,7 @@ installConfigs() {
install -D -m 644 -T ${PI_HOLE_LOCAL_REPO}/advanced/${LIGHTTPD_CFG} "${lighttpdConfig}" install -D -m 644 -T ${PI_HOLE_LOCAL_REPO}/advanced/${LIGHTTPD_CFG} "${lighttpdConfig}"
# Make sure the external.conf file exists, as lighttpd v1.4.50 crashes without it # Make sure the external.conf file exists, as lighttpd v1.4.50 crashes without it
if [ ! -f /etc/lighttpd/external.conf ]; then if [ ! -f /etc/lighttpd/external.conf ]; then
touch /etc/lighttpd/external.conf install -m 644 /dev/null /etc/lighttpd/external.com
chmod 644 /etc/lighttpd/external.conf
fi fi
# If there is a custom block page in the html/pihole directory, replace 404 handler in lighttpd config # If there is a custom block page in the html/pihole directory, replace 404 handler in lighttpd config
if [[ -f "${PI_HOLE_BLOCKPAGE_DIR}/custom.php" ]]; then if [[ -f "${PI_HOLE_BLOCKPAGE_DIR}/custom.php" ]]; then