ddns-scripts: update config installation
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 16 Sep 2020 14:11:36 +0000 (16:11 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 21 Sep 2020 08:17:01 +0000 (10:17 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/ddns-scripts/Makefile
net/ddns-scripts/files/ddns.config [deleted file]
net/ddns-scripts/files/etc/config/ddns [new file with mode: 0644]

index e0c748f302e4328c1d8ac538bd1cf28fba97bcc4..321930f06711e735274210e357e61dd584130b77 100755 (executable)
@@ -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 (file)
index b45855f..0000000
+++ /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 (file)
index 0000000..b45855f
--- /dev/null
@@ -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"
+