gluon-node-info: remove obsolete migration/fixup

This commit is contained in:
Matthias Schiffer 2022-01-02 22:20:01 +01:00
parent 225e8692bd
commit d8f6ed2406
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -1,15 +0,0 @@
#!/usr/bin/lua
local uci = require('simple-uci').cursor()
local util = require 'gluon.util'
local sname = uci:get_first('gluon-node-info', 'location')
if sname then
local options = {'longitude', 'latitude', 'altitude'}
for _, option in ipairs(options) do
local value = uci:get('gluon-node-info', sname, option)
if value then
uci:set('gluon-node-info', sname, option, util.trim(value))
end
end
uci:save('gluon-node-info')
end