1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Only touch the regex file if it doesn't already exist

The other permission calls will always be run so that the file is in the
expected state after install and repair.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12 2018-07-28 23:07:35 -04:00
parent 1a8d5fb4a9
commit a55cc55338
No known key found for this signature in database
GPG Key ID: ABB8FC9789AF524D

View File

@ -1237,7 +1237,9 @@ installConfigs() {
version_check_dnsmasq
# Install an empty regex file
touch "${regexFile}"
if [[ ! -f "${regexFile}" ]]; then
touch "${regexFile}"
fi
chown pihole:pihole "${regexFile}"
chmod 664 "${regexFile}"