diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2020-09-30 13:40:06 +0200 |
---|---|---|
committer | Ansuel Smith <ansuelsmth@gmail.com> | 2020-10-02 14:30:20 +0200 |
commit | e478875c6c8756d3a8ff612c333a38d2f3f9cc8e (patch) | |
tree | 0821396b5bbae0c987a942bf43f72f30514ed29c /applications/luci-app-ddns/root/usr/share | |
parent | 1da9df837685b3a2afc80125d056e37198933533 (diff) |
luci-app-ddns: rework with new ddns changes
This commit rework the app with the new ddns changes. DDns services are now stored in a dedicated list and the service specific data is stored in a dedicated json. This json can both preinstalled with a companion package or be downloaded on demand. The new app now check if the script is present and give a button to install it if not present in the system.
The app now will search for all the available service in the services directory and optionally if present will include in the list the service not installed from a static list. Special service that use a separate script (for example cloudflare-v4) will install directly in the services directory and will be included automatically.
The app now reset the ddns rule settings on service change.
Also rework the app to drop any global function and rework the function to use more default way to get data.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'applications/luci-app-ddns/root/usr/share')
-rw-r--r-- | applications/luci-app-ddns/root/usr/share/rpcd/acl.d/luci-app-ddns.json | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/applications/luci-app-ddns/root/usr/share/rpcd/acl.d/luci-app-ddns.json b/applications/luci-app-ddns/root/usr/share/rpcd/acl.d/luci-app-ddns.json index 94952792f0..298378452d 100644 --- a/applications/luci-app-ddns/root/usr/share/rpcd/acl.d/luci-app-ddns.json +++ b/applications/luci-app-ddns/root/usr/share/rpcd/acl.d/luci-app-ddns.json @@ -7,8 +7,12 @@ "luci": [ "setInitAction" ] }, "file": { - "/etc/ddns/services": [ "read" ], - "/etc/ddns/services_ipv6": [ "read" ], + "/usr/share/ddns/default": [ "list" ], + "/usr/share/ddns/default/*": [ "read" ], + "/usr/share/ddns/custom": [ "list" ], + "/usr/share/ddns/custom/*": [ "read" ], + "/usr/share/ddns/list": [ "read" ], + "/usr/bin/ddns": [ "exec" ], "/usr/lib/ddns/dynamic_dns_lucihelper.sh": [ "exec" ] }, "uci": [ "ddns" ] |