From c5ccdf15f8b3d047ed2e723ddc12c79dd44cd49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Thu, 16 Dec 2021 04:08:45 +0100 Subject: [PATCH] manman-sync fix statuspage --- .../lib/gluon/config-mode/reboot/0100-manman-sync.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/gluon-config-mode-manman-sync/luasrc/lib/gluon/config-mode/reboot/0100-manman-sync.lua b/package/gluon-config-mode-manman-sync/luasrc/lib/gluon/config-mode/reboot/0100-manman-sync.lua index d2fa702f..27c0b3a1 100644 --- a/package/gluon-config-mode-manman-sync/luasrc/lib/gluon/config-mode/reboot/0100-manman-sync.lua +++ b/package/gluon-config-mode-manman-sync/luasrc/lib/gluon/config-mode/reboot/0100-manman-sync.lua @@ -1,10 +1,10 @@ local site_i18n = i18n 'gluon-site' -local uci = require("simple-uci").cursor() +local uci = require('simple-uci').cursor() local msg -if uci:get_bool("gluon", "manman_sync", "enabled") then +if uci:get_bool('gluon-manman-sync', 'sync', 'enabled') then msg = site_i18n._translate('gluon-config-mode:manman') else msg = site_i18n._translate('gluon-config-mode:no-manman') @@ -13,5 +13,5 @@ end if not msg then return end renderer.render_string(msg, { - location_id = uci:get("gluon", "manman_sync", "location_id") + location_id = uci:get('gluon-manman-sync', 'sync', 'node_id') })