🐶 Sync 2026-10-08 01:07:04

This commit is contained in:
github-actions[bot] committed 2026-10-08 01:07:04 +08:00
1 parent 31f25ca6cb
commit ef5af2e0cc
283 files changed
+34710 -16084

No files matched your search

@@ -3,8 +3,7 @@
"description": "Grant access to ddns procedures",
"read": {
"ubus": {
"luci.ddns": [ "get_services_status", "get_ddns_state", "get_env", "get_services_log" ],
"luci": [ "setInitAction" ]
"luci.ddns": [ "get_services_status", "get_ddns_state", "get_env", "get_services_log" ]
},
"file": {
"/usr/share/ddns/default": [ "list" ],
@@ -13,12 +12,15 @@
"/usr/share/ddns/custom/*": [ "read" ],
"/usr/share/ddns/list": [ "read" ],
"/usr/bin/ddns": [ "exec" ],
"/usr/lib/ddns/dynamic_dns_lucihelper.sh": [ "exec" ]
"/etc/init.d/ddns": [ "exec" ]
},
"uci": [ "ddns" ]
},
"write": {
"uci": [ "ddns" ]
"uci": [ "ddns" ],
"ubus": {
"rc": [ "init" ]
}
}
}
}
@@ -43,7 +43,7 @@ function trimnonewline(input) {
}
function get_date(seconds, format) {
return trimnonewline( popen(`date -d @${seconds} "+${format}" 2>/dev/null`, 'r')?.read?.('line') );
return trimnonewline( popen(`date -d @${seconds} +${shellquote(format)} 2>/dev/null`, 'r')?.read?.('line') );
}
// convert epoch date to given format