gluon-node-info: add script to fix owner section after a run of a broken config mode
This commit is contained in:
parent
99e74b1004
commit
80797fb6d9
@ -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
|
Loading…
Reference in New Issue
Block a user