querfunk
/
ffka-querfunk
Archived
2
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ffka-querfunk/install-set-gluon-node-info

15 lines
520 B
Plaintext

#!/bin/sh
ffka_querfunk_mgmt=2a03:2260:a:b:ea94:f6ff:fea1:98f6
if ! ping6 -c1 $ffka_querfunk_mgmt &>/dev/null; then
echo 'ffka-querfunk is offline'
exit 1
fi
ssh root@$ffka_querfunk_mgmt "uci set gluon-node-info.@location[0].latitude=49.006679
uci set gluon-node-info.@location[0].longitude=8.4073580
uci set gluon-node-info.@location[0].share_location=1
uci get gluon-node-info.@owner[0] || uci add gluon-node-info owner
uci set gluon-node-info.@owner[0].contact=neingeist@querfunk.de
uci commit gluon-node-info"