Skip to content
Snippets Groups Projects
Unverified Commit c530070e authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-mesh-vpn-tunneldigger: remove obsolete migration

parent 84f4c164
No related branches found
No related tags found
No related merge requests found
...@@ -7,22 +7,7 @@ local vpn_core = require 'gluon.mesh-vpn' ...@@ -7,22 +7,7 @@ local vpn_core = require 'gluon.mesh-vpn'
local uci = require('simple-uci').cursor() local uci = require('simple-uci').cursor()
local enabled
-- Delete old broker config section (remove in 2019)
if not uci:get('tunneldigger', 'mesh_vpn') then
if uci:get_first('tunneldigger', 'broker', 'interface') == 'mesh-vpn' then
enabled = uci:get_first('tunneldigger', 'broker', 'enabled')
end
-- In the usual case (no migration from old tunneldigger package), the
-- enabled state is set in the 500-mesh-vpn script
uci:delete_all('tunneldigger', 'broker')
end
uci:section('tunneldigger', 'broker', 'mesh_vpn', { uci:section('tunneldigger', 'broker', 'mesh_vpn', {
enabled = enabled,
uuid = util.node_id(), uuid = util.node_id(),
interface = vpn_core.get_interface(), interface = vpn_core.get_interface(),
bind_interface = 'br-wan', bind_interface = 'br-wan',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment