From 06b428e855239b30338a8be98966e25b892b1c3f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 12 May 2018 18:03:35 +0100 Subject: [PATCH] Only create inadyn config file if it doesn't exist --- src/freedombone-utils-web | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index edfb9482..49cc2534 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -535,9 +535,11 @@ function install_dynamicdns { fi # create a configuration file - { echo 'period = 300'; - echo 'user-agent = Mozilla/5.0'; - echo ''; } > "${INADYN_CONFIG_FILE}" + if [ ! -f "${INADYN_CONFIG_FILE}" ]; then + { echo 'period = 300'; + echo 'user-agent = Mozilla/5.0'; + echo ''; } > "${INADYN_CONFIG_FILE}" + fi chmod 600 "${INADYN_CONFIG_FILE}" { echo '[Unit]';