mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/ddclient: update for force addition
Could be added to GUI, but needs testing first.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user