mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
owsd: save owsd_acl file under /tmp/owsd folder
This commit is contained in:
parent
859c3cb259
commit
fd16e6dc81
1 changed files with 4 additions and 2 deletions
|
|
@ -66,6 +66,8 @@ rpcd_acl() {
|
|||
}
|
||||
|
||||
handle_owsd_acl() {
|
||||
[ -d /tmp/owsd ] || mkdir /tmp/owsd
|
||||
|
||||
config_load rpcd
|
||||
config_foreach append_users "login"
|
||||
|
||||
|
|
@ -77,9 +79,9 @@ handle_owsd_acl() {
|
|||
config_foreach owsd_acl "owsd-listen" "$USR"
|
||||
json_close_array
|
||||
done
|
||||
json_dump > /tmp/owsd_acl
|
||||
json_dump > /tmp/owsd/owsd_acl
|
||||
|
||||
json_load "$(cat /tmp/owsd_acl)"
|
||||
json_load "$(cat /tmp/owsd/owsd_acl)"
|
||||
config_load rpcd
|
||||
config_foreach rpcd_acl "login"
|
||||
uci commit rpcd
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue