From 7934a9bcb4936aaa5218dbe967ad57b70b19f5bc Mon Sep 17 00:00:00 2001
From: jesterchen <github@jesterweb.de>
Date: Mon, 1 Jun 2020 12:00:29 +0200
Subject: [PATCH 1/2] 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}"
 }
 

From 7248d1a50467832302793e6c6f8952dac2d647de Mon Sep 17 00:00:00 2001
From: jesterchen <github@jesterweb.de>
Date: Mon, 1 Jun 2020 12:00:29 +0200
Subject: [PATCH 2/2] 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 <github@jesterweb.de>
---
 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}"
 }