ddns.cgi: Add hook to generate ddns.conf from CLI.

This commit is contained in:
Michael Tremer
2014-07-08 16:10:46 +02:00
parent cfcfb947c3
commit cd56eb6db1

View File

@@ -29,6 +29,12 @@ require '/var/ipfire/general-functions.pl';
require "${General::swroot}/lang.pl";
require "${General::swroot}/header.pl";
# Hook to regenerate the configuration files, if cgi got called from command line.
if ($ENV{"REMOTE_ADDR"} eq "") {
&GenerateDDNSConfigFile();
exit(0);
}
#workaround to suppress a warning when a variable is used only once
my @dummy = ( ${Header::table2colour}, ${Header::colouryellow} );
undef (@dummy);