From 934ac0ee6031ab2694069fd5ce7f61c9bc255ba0 Mon Sep 17 00:00:00 2001 From: Cyrus Fox Date: Fri, 24 Jun 2016 10:49:06 +0200 Subject: [PATCH] Fixed broken activation of tunneldigger via site.conf --- .../files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon-mesh-vpn-tunneldigger/files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger b/gluon-mesh-vpn-tunneldigger/files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger index 6e930be..462562d 100755 --- a/gluon-mesh-vpn-tunneldigger/files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger +++ b/gluon-mesh-vpn-tunneldigger/files/lib/gluon/upgrade/400-mesh-vpn-tunneldigger @@ -11,7 +11,7 @@ local lutil = require 'luci.util' users.add_group('gluon-tunneldigger', 900) local enabled = uci:get_first('tunneldigger', 'broker', 'enabled') -if not enabled then +if (tonumber(enabled) == 0) then enabled = site.tunneldigger_mesh_vpn.enabled and 1 or 0 end