From 7248d1a50467832302793e6c6f8952dac2d647de Mon Sep 17 00:00:00 2001 From: jesterchen Date: Mon, 1 Jun 2020 12:00:29 +0200 Subject: [PATCH] Ensure that adlistFile is created before chmodding If an user installs Pi-hole without selecting any adlists, the installer emits a warning and exits. By touching the file this is prevented. Signed-off-by: jesterchen --- automated install/basic-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 386ed371..f83eca78 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1228,6 +1228,7 @@ chooseBlocklists() { do appendToListsFile "${choice}" done + touch "${adlistFile}" chmod 644 "${adlistFile}" }