mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/ddclient: more changes for a full 1.18; also closes #3685
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= ddclient
|
||||
PLUGIN_VERSION= 1.17
|
||||
PLUGIN_VERSION= 1.18
|
||||
PLUGIN_DEPENDS= ddclient py${PLUGIN_PYTHON}-boto3
|
||||
PLUGIN_COMMENT= Dynamic DNS client
|
||||
PLUGIN_MAINTAINER= ad@opnsense.org
|
||||
|
||||
@@ -6,6 +6,12 @@ WWW: https://github.com/ddclient/ddclient
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.18
|
||||
|
||||
* Update to ddclient 3.11.2 FreeBSD ports version
|
||||
* Default to native backend for new installs
|
||||
* Fix permission of ddclient.json
|
||||
|
||||
1.17
|
||||
|
||||
* Update to ddclient 3.11.1 (dnsexit legacy support removed)
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/DynDNS</mount>
|
||||
<version>1.5.1</version>
|
||||
<description>
|
||||
Dynamic DNS client
|
||||
</description>
|
||||
<description>Dynamic DNS client</description>
|
||||
<items>
|
||||
<general>
|
||||
<enabled type="BooleanField">
|
||||
@@ -26,7 +24,7 @@
|
||||
</daemon_delay>
|
||||
<backend type="OptionField">
|
||||
<Required>Y</Required>
|
||||
<Default>ddclient</Default>
|
||||
<Default>opnsense</Default>
|
||||
<ValidationMessage>A backend is required.</ValidationMessage>
|
||||
<OptionValues>
|
||||
<ddclient>ddclient</ddclient>
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
for CONF in /usr/local/etc/ddclient.conf /usr/local/etc/ddclient.json; do
|
||||
chmod 0600 ${CONF}
|
||||
done
|
||||
@@ -1,7 +1,6 @@
|
||||
[start]
|
||||
command:
|
||||
chmod 600 /usr/local/etc/ddclient.conf;
|
||||
/usr/local/etc/rc.d/ddclient start ;
|
||||
/usr/local/etc/rc.d/ddclient start;
|
||||
/usr/local/etc/rc.d/ddclient_opn start
|
||||
type:script
|
||||
message:starting ddclient
|
||||
@@ -18,9 +17,8 @@ message:get ddclient status
|
||||
|
||||
[restart]
|
||||
command:
|
||||
chmod 600 /usr/local/etc/ddclient.conf;
|
||||
pkill -F /var/run/ddclient.pid 2> /dev/null;
|
||||
/usr/local/etc/rc.d/ddclient restart ;
|
||||
/usr/local/etc/rc.d/ddclient restart;
|
||||
/usr/local/etc/rc.d/ddclient_opn restart
|
||||
type:script
|
||||
message:restarting ddclient
|
||||
@@ -28,7 +26,6 @@ description:Restart ddclient service
|
||||
|
||||
[force]
|
||||
command:
|
||||
chmod 600 /usr/local/etc/ddclient.conf;
|
||||
rm /var/tmp/ddclient_opn.status 2>/dev/null;
|
||||
/usr/local/etc/rc.d/ddclient_opn restart 2>/dev/null;
|
||||
/usr/local/sbin/ddclient -force
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{% if not helpers.empty('OPNsense.DynDNS.general.enabled') and OPNsense.DynDNS.general.backend == 'opnsense' %}
|
||||
ddclient_opn_enable="YES"
|
||||
ddclient_opn_setup="/usr/local/opnsense/scripts/ddclient/setup.sh"
|
||||
{% else %}
|
||||
ddclient_opn_enable="NO"
|
||||
{% endif %}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{% if not helpers.empty('OPNsense.DynDNS.general.enabled') and OPNsense.DynDNS.general.backend == 'ddclient' %}
|
||||
ddclient_enable="YES"
|
||||
ddclient_setup="/usr/local/opnsense/scripts/ddclient/setup.sh"
|
||||
ddclient_flags="-daemon {{OPNsense.DynDNS.general.daemon_delay|default('300')}}"
|
||||
{% else %}
|
||||
ddclient_enable="NO"
|
||||
|
||||
Reference in New Issue
Block a user