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 json = require 'jsonc'
|
||||||
local site = require 'gluon.site'
|
local site = require 'gluon.site'
|
||||||
local glob = require 'posix.glob'
|
local glob = require 'posix.glob'
|
||||||
@ -41,6 +42,9 @@ function config_set(parts, config)
|
|||||||
for _, part in pairs(parts) do
|
for _, part in pairs(parts) do
|
||||||
part.set(config, uci)
|
part.set(config, uci)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- commit all uci configs
|
||||||
|
os.execute('uci commit')
|
||||||
end
|
end
|
||||||
|
|
||||||
local function pump(src, snk)
|
local function pump(src, snk)
|
||||||
|
Loading…
Reference in New Issue
Block a user