From: Florian Eckert Date: Wed, 16 Sep 2020 14:11:36 +0000 (+0200) Subject: ddns-scripts: update config installation X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=63804b735801cda0b86018c686b0c2a44f4ccc36;p=feed%2Fpackages.git ddns-scripts: update config installation Signed-off-by: Florian Eckert --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index e0c748f302..321930f067 100755 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -173,7 +173,7 @@ define Package/ddns-scripts/install $(1)/etc/init.d/ddns $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_CONF) ./files/ddns.config \ + $(INSTALL_CONF) ./files/etc/config/ddns \ $(1)/etc/config/ddns $(INSTALL_DIR) $(1)/usr/share/ddns diff --git a/net/ddns-scripts/files/ddns.config b/net/ddns-scripts/files/ddns.config deleted file mode 100644 index b45855f0d0..0000000000 --- a/net/ddns-scripts/files/ddns.config +++ /dev/null @@ -1,32 +0,0 @@ -# -# Please read https://openwrt.org/docs/guide-user/base-system/ddns -# -config ddns "global" - option ddns_dateformat "%F %R" -# option ddns_rundir "/var/run/ddns" -# option ddns_logdir "/var/log/ddns" - option ddns_loglines "250" - option upd_privateip "0" - - -config service "myddns_ipv4" - option service_name "dyndns.org" - option lookup_host "yourhost.example.com" - option domain "yourhost.example.com" - option username "your_username" - option password "your_password" - option interface "wan" - option ip_source "network" - option ip_network "wan" - -config service "myddns_ipv6" - option update_url "http://[USERNAME]:[PASSWORD]@your.provider.net/nic/update?hostname=[DOMAIN]&myip=[IP]" - option lookup_host "yourhost.example.com" - option domain "yourhost.example.com" - option username "your_username" - option password "your_password" - option use_ipv6 "1" - option interface "wan6" - option ip_source "network" - option ip_network "wan6" - diff --git a/net/ddns-scripts/files/etc/config/ddns b/net/ddns-scripts/files/etc/config/ddns new file mode 100644 index 0000000000..b45855f0d0 --- /dev/null +++ b/net/ddns-scripts/files/etc/config/ddns @@ -0,0 +1,32 @@ +# +# Please read https://openwrt.org/docs/guide-user/base-system/ddns +# +config ddns "global" + option ddns_dateformat "%F %R" +# option ddns_rundir "/var/run/ddns" +# option ddns_logdir "/var/log/ddns" + option ddns_loglines "250" + option upd_privateip "0" + + +config service "myddns_ipv4" + option service_name "dyndns.org" + option lookup_host "yourhost.example.com" + option domain "yourhost.example.com" + option username "your_username" + option password "your_password" + option interface "wan" + option ip_source "network" + option ip_network "wan" + +config service "myddns_ipv6" + option update_url "http://[USERNAME]:[PASSWORD]@your.provider.net/nic/update?hostname=[DOMAIN]&myip=[IP]" + option lookup_host "yourhost.example.com" + option domain "yourhost.example.com" + option username "your_username" + option password "your_password" + option use_ipv6 "1" + option interface "wan6" + option ip_source "network" + option ip_network "wan6" +