diff -urN smeserver-ddclient-1.3.0.old/createlinks smeserver-ddclient-1.3.0/createlinks --- smeserver-ddclient-1.3.0.old/createlinks 2021-03-03 08:47:20.274725797 +0000 +++ smeserver-ddclient-1.3.0/createlinks 2021-03-05 10:39:46.282345845 +0000 @@ -14,7 +14,7 @@ event_link("systemd-default", $event, "10"); event_link("systemd-reload", $event, "50"); #action specific to this package -event_link("conf-timezone", $event, "30"); +#event_link("conf-timezone", $event, "30"); #services we need to restart safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient"); diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/web/functions/ddclient smeserver-ddclient-1.3.0/root/etc/e-smith/web/functions/ddclient --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/web/functions/ddclient 2020-06-28 09:57:50.000000000 +0100 +++ smeserver-ddclient-1.3.0/root/etc/e-smith/web/functions/ddclient 2021-03-05 10:28:32.588601126 +0000 @@ -164,6 +164,49 @@ #------------------------------------------------------------ # subroutine to display initial form #------------------------------------------------------------ +sub get_dns_labels { + # + # dns service names from ddclient + # + # Better here would be to extract this list from the ddclient package. + my $Labels = ( + [ + 'CUSTOMDNS' , + 'DYNDNS1' , + 'DYNDNS2' , + 'DYNDNS3' , + 'ZONEDIT' , + 'EASYDNS' , + 'HAMMER' , + 'DSLREPORTS' , + 'EURODYNDNS' , + 'DTDNS' , + 'LOOPIA' , + 'DNSPARK' , + 'DYNHOST' , + 'NOIP' , + 'CHANGEIP' , + 'NAMECHEAP' , + 'SPDNS' , + 'SITELUTIONS', + 'FREEDNS', + 'NSUPDATE', + 'CLOUDFLARE', + 'GOOGLEDOMAINS', + 'DUCKDNS', + 'FREEMYIP', + 'WOIMA', + 'YANDEX', + 'DNSMADEEASY', + 'DONDOMINIO', + 'NFSN', + 'OVH', + 'CLOUDNS' + ] + ); + return $Labels; +} + sub genServer ($$) { @@ -174,37 +217,20 @@ $curSetting = 'dyndns1'; } - my %Labels = ( - 'CUSTOMDNS' => $fm->localise('CUSTOMDNS'), - 'DYNDNS1' => $fm->localise('DYNDNS1'), - 'DYNDNS2' => $fm->localise('DYNDNS2'), - 'DYNDNS3' => $fm->localise('DYNDNS3'), - 'ZONEDIT' => $fm->localise('ZONEDIT'), - 'EASYDNS' => $fm->localise('EASYDNS'), - 'HAMMER' => $fm->localise('HAMMER'), - 'DSLREPORTS'=> $fm->localise('DSLREPORTS'), - 'EURODYNDNS'=> $fm->localise('EURODYNDNS'), - 'DTDNS' => $fm->localise('DTDNS'), - 'LOOPIA' => $fm->localise('LOOPIA'), - 'DNSPARK' => $fm->localise('DNSPARK'), - 'DYNHOST' => $fm->localise('DYNHOST'), - 'NOIP' => $fm->localise('NOIP'), - 'CHANGEIP' => $fm->localise('CHANGEIP'), - 'NAMECHEAP' => $fm->localise('NAMECHEAP'), - 'SPDNS' => $fm->localise('SPDNS') - ); - + my $Labels = get_dns_labels(); + # Create translated description for them + my %LabelDescriptions; + foreach my $lab (@$Labels){ + $LabelDescriptions{$lab}= $fm->localise($lab); + }; return esmith::cgi::genCell ($q, $q->popup_menu (-name => 'dns', - -values => [ - 'CUSTOMDNS', 'DYNDNS1','DYNDNS2','DYNDNS3','ZONEDIT', - 'EASYDNS','HAMMER','DSLREPORTS', 'EURODYNDNS', - 'DTDNS','LOOPIA','DNSPARK','DYNHOST','NOIP','CHANGEIP', - 'NAMECHEAP','SPDNS' - ], + -values => $Labels, -default => $curSetting, - -labels => \%Labels)); + -labels => \%LabelDescriptions)); } + + #----------------------------------------------------------------------------------------------------- sub genRetrieve($$) { my ($q, $curSetting) = @_; diff -urN smeserver-ddclient-1.3.0.old/root/usr/lib/systemd/system/ddclient.service.d/50koozali.conf smeserver-ddclient-1.3.0/root/usr/lib/systemd/system/ddclient.service.d/50koozali.conf --- smeserver-ddclient-1.3.0.old/root/usr/lib/systemd/system/ddclient.service.d/50koozali.conf 1970-01-01 01:00:00.000000000 +0100 +++ smeserver-ddclient-1.3.0/root/usr/lib/systemd/system/ddclient.service.d/50koozali.conf 2021-03-05 11:28:28.944223766 +0000 @@ -0,0 +1,5 @@ +[Service] +execStart=/usr/sbin/ddclient $DDCLIENT_OPTIONS +[Install] +WantedBy=sme-server.target +