node-fff-hoods: Make keyserverurl configurable
ci/woodpecker/pr/woodpecker Pipeline is pending Details

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Robert Langhammer 2022-04-03 22:26:59 +02:00
parent 20ecca34c0
commit c1ceb6af89
2 changed files with 4 additions and 1 deletions

View File

@ -2,4 +2,7 @@
ln -s "$hoodfilewww" /www/hood/keyxchangev2data
uci set fff.keyserver='hood'
uci commit fff
exit 0

View File

@ -99,7 +99,7 @@ getKeyserverHoodfile() {
echo "Getting hoodfile from Keyserver"
if /bin/busybox wget -T15 -O "$file" "http://keyserver.freifunk-franken.de/v2/?lat=$lat&long=$long"; then
if /bin/busybox wget -T15 -O "$file" "$(uci -q get fff.keyserver.url || echo "http://keyserver.freifunk-franken.de/v2")/?lat=$lat&long=$long"; then
return 0
else
return 1