From a55cc5533853264fb2768eb1fc48a67dd55a804f Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sat, 28 Jul 2018 23:07:35 -0400 Subject: [PATCH] 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 --- automated install/basic-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 1bbebde9..9d04bd85 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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}"