Touch files before addKey or addOrEditKeyValPair

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-11-09 21:25:09 +01:00
parent 2fd5b944ad
commit 67385b7ed4
2 changed files with 6 additions and 3 deletions
-3
View File
@@ -1785,9 +1785,6 @@ create_pihole_user() {
finalExports() {
# set or update the variables in the file
# create the file if it does not exist
touch "${setupVars}"
addOrEditKeyValPair "${setupVars}" "PIHOLE_INTERFACE" "${PIHOLE_INTERFACE}"
addOrEditKeyValPair "${setupVars}" "PIHOLE_DNS_1" "${PIHOLE_DNS_1}"
addOrEditKeyValPair "${setupVars}" "PIHOLE_DNS_2" "${PIHOLE_DNS_2}"