pull/322/head
KM4ACK 2021-10-11 08:08:06 -05:00
rodzic 34039c3d2d
commit ed6d51bf57
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -40,7 +40,9 @@ PAT() {
#set locator
sed -i "s/\"locator\": \".*\",/\"locator\": \"$GRID\",/" ${FIG}
#Change localhost to 0.0.0.0
sed -i "s/\"http_addr\": \".*\",/\"http_addr\": \"0.0.0.0:$PORT\",/" ${FIG}
#This is a secutiry risk. See https://github.com/km4ack/pi-build/issues/299
#Changed to 127.0.0.1 on 11OCT2021 KM4ACK
sed -i "s/\"http_addr\": \".*\",/\"http_addr\": \"127.0.0.1:$PORT\",/" ${FIG}
jq '.ax25.rig = '\"my-rig\"'' ${HOME}/.wl2k/config.json | jq '.ardop.rig = '\"my-rig\"'' | jq '.hamlib_rigs = {'\"my-rig\"': {"address": "127.0.0.1:4532", "network": "tcp"}}' >~/Desktop/config.json
mv ${HOME}/Desktop/config.json ${FIG}
sed -i 's/"enable_http": false,/"enable_http": true,/' ${FIG}