From 3f739d513c39887052f87e9da24209833e8bf12e Mon Sep 17 00:00:00 2001 From: lemoer Date: Thu, 12 Aug 2021 03:09:36 +0200 Subject: [PATCH] gluon-config-api-core: commit all configs after set --- .../luasrc/lib/gluon/config-api/controller/controller.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/gluon-config-api-core/luasrc/lib/gluon/config-api/controller/controller.lua b/package/gluon-config-api-core/luasrc/lib/gluon/config-api/controller/controller.lua index 9c44153d..aa647cbf 100644 --- a/package/gluon-config-api-core/luasrc/lib/gluon/config-api/controller/controller.lua +++ b/package/gluon-config-api-core/luasrc/lib/gluon/config-api/controller/controller.lua @@ -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)