gluon-config-api-core: commit all configs after set
This commit is contained in:
parent
71ee67ec18
commit
3f739d513c
@ -1,3 +1,4 @@
|
||||
local os = require 'os'
|
||||
local json = require 'jsonc'
|
||||
local site = require 'gluon.site'
|
||||
local glob = require 'posix.glob'
|
||||
@ -41,6 +42,9 @@ function config_set(parts, config)
|
||||
for _, part in pairs(parts) do
|
||||
part.set(config, uci)
|
||||
end
|
||||
|
||||
-- commit all uci configs
|
||||
os.execute('uci commit')
|
||||
end
|
||||
|
||||
local function pump(src, snk)
|
||||
|
Loading…
Reference in New Issue
Block a user