mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-18 09:10:49 +00:00
dynamicdns: Fix writing configuration for no NAT
- When writing the configuration file for no NAT case, append then last part of the file instead of overwriting. - Also 'echo' statements are missing leading to attempt to execute the config options instead of writing them to a file.
This commit is contained in:
parent
aa5efd4984
commit
ea1e9b6e2a
@ -167,11 +167,11 @@ doWriteCFG()
|
||||
echo "NAT no" >> ${HELPERCFG}
|
||||
# if this file is added ez-ipupdate will take ip form this interface
|
||||
{
|
||||
"interface=${default_interface}"
|
||||
echo "interface=${default_interface}"
|
||||
# if this line is added to config file, ez-ipupdate will be launched on startup via init.d
|
||||
"daemon"
|
||||
"execute=${0} success"
|
||||
} > ${out_file}
|
||||
echo "daemon"
|
||||
echo "execute=${0} success"
|
||||
} >> ${out_file}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user