Only create inadyn config file if it doesn't exist
This commit is contained in:
parent
f3e0653908
commit
06b428e855
|
@ -535,9 +535,11 @@ function install_dynamicdns {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create a configuration file
|
# create a configuration file
|
||||||
|
if [ ! -f "${INADYN_CONFIG_FILE}" ]; then
|
||||||
{ echo 'period = 300';
|
{ echo 'period = 300';
|
||||||
echo 'user-agent = Mozilla/5.0';
|
echo 'user-agent = Mozilla/5.0';
|
||||||
echo ''; } > "${INADYN_CONFIG_FILE}"
|
echo ''; } > "${INADYN_CONFIG_FILE}"
|
||||||
|
fi
|
||||||
chmod 600 "${INADYN_CONFIG_FILE}"
|
chmod 600 "${INADYN_CONFIG_FILE}"
|
||||||
|
|
||||||
{ echo '[Unit]';
|
{ echo '[Unit]';
|
||||||
|
|
Loading…
Reference in New Issue