1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

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>
This commit is contained in:
jesterchen 2020-06-01 12:00:29 +02:00
parent c73001f392
commit 7248d1a504

View File

@ -1228,6 +1228,7 @@ chooseBlocklists() {
do
appendToListsFile "${choice}"
done
touch "${adlistFile}"
chmod 644 "${adlistFile}"
}