From 79ad3ca57d9daa787f3ae47358de51297cb4ad52 Mon Sep 17 00:00:00 2001 From: Andy Chiang Date: Thu, 28 May 2026 22:13:33 +0700 Subject: [PATCH] luci-app-ddns: fix handleReloadDDnsRule When DDNS is running, `dynamic_dns_lucihelper.sh` fails to reload. It only starts when DDNS is stopped, which contradicts the button description. Therefore, changed to `/etc/init.d/ddns restart section_id`. Signed-off-by: Andy Chiang --- .../htdocs/luci-static/resources/view/ddns/overview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index 8578ce91ef..0f46347adb 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -164,8 +164,8 @@ return view.extend({ }, handleReloadDDnsRule(m, section_id, ev) { - return fs.exec('/usr/lib/ddns/dynamic_dns_lucihelper.sh', - [ '-S', section_id, '--', 'start' ]) + return fs.exec('/etc/init.d/ddns', + [ 'restart', section_id ]) .then(L.bind(m.load, m)) .then(L.bind(m.render, m)) .catch(function(e) { ui.addNotification(null, E('p', e.message)) });