Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Schaper <dan.schaper@pi-hole.net>2022-04-01 00:23:39 +0300
committerDan Schaper <dan.schaper@pi-hole.net>2022-04-01 00:23:39 +0300
commitc2384ecc6f5bc55e4d00c37e56666e891c0d8f46 (patch)
tree7bd46b4da41178821d0087380662c93d9e1febc9 /automated install/basic-install.sh
parent2f384525652e3e617bfd5e13e9ed09b0165a9176 (diff)
Change touch that would always fire to install.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
Diffstat (limited to 'automated install/basic-install.sh')
-rwxr-xr-xautomated install/basic-install.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh
index 99e4dc47..4c173d05 100755
--- a/automated install/basic-install.sh
+++ b/automated install/basic-install.sh
@@ -1333,8 +1333,7 @@ installConfigs() {
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
if [ ! -f /etc/lighttpd/external.conf ]; then
- touch /etc/lighttpd/external.conf
- chmod 644 /etc/lighttpd/external.conf
+ install -m 644 /dev/null /etc/lighttpd/external.com
fi
# 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