mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +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:
1 file changed
+4
-4
+4
-4
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user