From 7934a9bcb4936aaa5218dbe967ad57b70b19f5bc 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. --- 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}" }