mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +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.
This commit is contained in:
parent
c73001f392
commit
7934a9bcb4
1 changed files with 1 additions and 0 deletions
|
@ -1228,6 +1228,7 @@ chooseBlocklists() {
|
||||||
do
|
do
|
||||||
appendToListsFile "${choice}"
|
appendToListsFile "${choice}"
|
||||||
done
|
done
|
||||||
|
touch "${adlistFile}"
|
||||||
chmod 644 "${adlistFile}"
|
chmod 644 "${adlistFile}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue