dns/ddclient: update for force addition

Could be added to GUI, but needs testing first.
This commit is contained in:
Franco Fichtner
2022-06-29 10:09:47 +02:00
parent 277e06db45
commit 8e7ec17828
5 changed files with 24 additions and 6 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= ddclient
PLUGIN_VERSION= 1.7
PLUGIN_REVISION= 2
PLUGIN_VERSION= 1.8
PLUGIN_DEPENDS= ddclient
PLUGIN_COMMENT= Dynamic DNS client
PLUGIN_MAINTAINER= ad@opnsense.org
+5
View File
@@ -6,6 +6,11 @@ WWW: https://github.com/ddclient/ddclient
Plugin Changelog
================
1.8
* Add a force action (also available via cron)
* Fix expected permission on ddclient.conf
1.7
* Add current ip address and updated timestamp to search api and grid
@@ -1,5 +1,7 @@
[start]
command:/usr/local/etc/rc.d/ddclient start
command:
chmod 600 /usr/local/etc/ddclient.conf;
/usr/local/etc/rc.d/ddclient start
type:script
message:starting ddclient
@@ -14,16 +16,28 @@ type:script_output
message:get ddclient status
[restart]
command:/usr/local/etc/rc.d/ddclient restart
command:
chmod 600 /usr/local/etc/ddclient.conf;
/usr/local/etc/rc.d/ddclient restart
type:script
message:restarting ddclient
description:Restart ddclient service
[reload]
command:/usr/local/etc/rc.d/ddclient reload
command:
chmod 600 /usr/local/etc/ddclient.conf;
/usr/local/etc/rc.d/ddclient reload
type:script
message:reload ddclient configuration
[force]
command:
chmod 600 /usr/local/etc/ddclient.conf;
/usr/local/sbin/ddclient -force
type:script
message:forcing ddclient update
desciption:Force ddclient update
[statistics]
command:/usr/local/opnsense/scripts/ddclient/stats
type:script_output
@@ -1,5 +1,4 @@
{% from 'OPNsense/Macros/interface.macro' import physical_interface %}
daemon={{OPNsense.DynDNS.general.daemon_delay|default('300')}}
syslog=yes # log update msgs to syslog
pid=/var/run/ddclient.pid # record PID in file.
{% if not helpers.empty('OPNsense.DynDNS.general.verbose') %}
@@ -1,5 +1,6 @@
{% if not helpers.empty('OPNsense.DynDNS.general.enabled') %}
ddclient_enable="YES"
ddclient_flags="-daemon {{OPNsense.DynDNS.general.daemon_delay|default('300')}}"
{% else %}
ddclient_enable="NO"
{% endif %}