From 86349527e7c509f0152fc5370d27b2edd08c86dd Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Tue, 25 Oct 2016 15:06:37 +0100 Subject: [PATCH] replace HOSTNAME tokens in 01-pihole.conf --- automated install/basic-install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 72e893b0..0bc43b49 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -536,6 +536,18 @@ version_check_dnsmasq() { else sed -i '/^server=@DNS2@/d' ${dnsmasq_pihole_01_location} fi + + if [[ -f /etc/hostname ]]; then + hostname=$(