mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-24 17:24:04 +00:00
Touch setupVars before writing to it
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
f91606bb17
commit
2fd5b944ad
1 changed files with 3 additions and 0 deletions
|
@ -1785,6 +1785,9 @@ 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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue