From 80797fb6d9801c751d000a152966d696cda516ad Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Mon, 17 Mar 2014 14:53:29 +0100
Subject: [PATCH] gluon-node-info: add script to fix owner section after a run
 of a broken config mode

---
 .../gluon/upgrade/node-info/invariant/010-fixup-owner | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100755 package/gluon-node-info/files/lib/gluon/upgrade/node-info/invariant/010-fixup-owner

diff --git a/package/gluon-node-info/files/lib/gluon/upgrade/node-info/invariant/010-fixup-owner b/package/gluon-node-info/files/lib/gluon/upgrade/node-info/invariant/010-fixup-owner
new file mode 100755
index 000000000..bc0314be6
--- /dev/null
+++ b/package/gluon-node-info/files/lib/gluon/upgrade/node-info/invariant/010-fixup-owner
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. /lib/functions.sh
+
+
+uci_remove gluon-node-info '@contact[0]' 2>/dev/null
+
+uci_get gluon-node-info '@owner[0]' >/dev/null || uci_add gluon-node-info 'owner'
+
+
+uci_commit gluon-node-info
-- 
GitLab