From d3cdc40e02a898b766bdc067232c7b45855e58ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Thu, 7 Apr 2022 03:36:17 +0200 Subject: [PATCH] gluon-yggdrasil: fix --- .../luasrc/lib/gluon/upgrade/300-gluon-yggdrasil | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/gluon-yggdrasil/luasrc/lib/gluon/upgrade/300-gluon-yggdrasil b/package/gluon-yggdrasil/luasrc/lib/gluon/upgrade/300-gluon-yggdrasil index 79f6c1ad..e256ee15 100755 --- a/package/gluon-yggdrasil/luasrc/lib/gluon/upgrade/300-gluon-yggdrasil +++ b/package/gluon-yggdrasil/luasrc/lib/gluon/upgrade/300-gluon-yggdrasil @@ -1,5 +1,8 @@ #!/usr/bin/lua +local uci = require('simple-uci').cursor() +local site = require 'gluon.site' + -- TODO: maybe restrict multicast to mesh? -- TODO: userpeers with user prefix (u_) in id plus config-mode webui for that -- similar to static dns list field @@ -17,3 +20,5 @@ if site.mesh.yggdrasil.enabled(false) then else os.execute('/etc/init.d/yggdrasil disable') end + +uci:save('yggdrasil')