Skip to content
Snippets Groups Projects
Commit 06b428e8 authored by Bob Mottram's avatar Bob Mottram
Browse files

Only create inadyn config file if it doesn't exist

parent f3e06539
No related branches found
No related tags found
No related merge requests found
......@@ -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]';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment