From d8f6ed2406ba061faa50ae005879c59f750dd322 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 2 Jan 2022 22:20:01 +0100 Subject: [PATCH] gluon-node-info: remove obsolete migration/fixup --- .../gluon/upgrade/520-node-info-whitespace-fix | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 package/gluon-node-info/luasrc/lib/gluon/upgrade/520-node-info-whitespace-fix diff --git a/package/gluon-node-info/luasrc/lib/gluon/upgrade/520-node-info-whitespace-fix b/package/gluon-node-info/luasrc/lib/gluon/upgrade/520-node-info-whitespace-fix deleted file mode 100755 index 62cd4beb..00000000 --- a/package/gluon-node-info/luasrc/lib/gluon/upgrade/520-node-info-whitespace-fix +++ /dev/null @@ -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