mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 02:21:50 +08:00
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 <AndyChiang_git@outlook.com>
This commit is contained in:
@@ -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)) });
|
||||
|
||||
Reference in New Issue
Block a user