Skip to content

Commit 90eb547

Browse files
committed
Switch manual-install connector fallback to feed2.airplanes.live
Manual installs have been writing TARGET with feed.airplanes.live as both the primary and the fallback hostname, while feed2.airplanes.live is the dedicated backup ingest. This change updates configure.sh's literal TARGET line and adds a sed migration in update.sh (matching the existing beast_reduce_out to beast_reduce_plus_out migration pattern), so existing feed.env files pick up the new fallback on their next update.sh run.
1 parent 7fe0466 commit 90eb547

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ PRIVACY=""
154154
INPUT_TYPE="$INPUT_TYPE"
155155
156156
MLATSERVER="feed.airplanes.live:31090"
157-
TARGET="--net-connector feed.airplanes.live,30004,beast_reduce_plus_out,feed.airplanes.live,64004"
157+
TARGET="--net-connector feed.airplanes.live,30004,beast_reduce_plus_out,feed2.airplanes.live,64004"
158158
NET_OPTIONS="--net-heartbeat 60 --net-ro-size 1280 --net-ro-interval 0.2 --net-ro-port 0 --net-sbs-port 0 --net-bi-port 30187 --net-bo-port 0 --net-ri-port 0 --write-json-every 1 --uuid-file /usr/local/share/airplanes/airplanes-uuid"
159159
JSON_OPTIONS="--max-range 450 --json-location-accuracy 2 --range-outline-hours 24"
160160
EOF

test/test_update_script.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@ SH
207207
[ -f "$root/lib/systemd/system/airplanes-mlat.service" ]
208208
[ -f "$ipath/airplanes-uuid" ]
209209
grep -q 'UAT_INPUT="127.0.0.1:30978"' "$root/etc/airplanes/feed.env"
210-
grep -q 'beast_reduce_plus_out,feed.airplanes.live,64004' "$root/etc/airplanes/feed.env"
210+
grep -q 'beast_reduce_plus_out,feed2.airplanes.live,64004' "$root/etc/airplanes/feed.env"
211211
[ -L "$root/etc/default/airplanes" ]
212212
[ "$(readlink "$root/etc/default/airplanes")" = "$root/etc/airplanes/feed.env" ]
213213
grep -q 'claim register' "$ROOT_DIR/claim.log"
214214
grep -q -- '--max-retry-time 15' "$ROOT_DIR/claim.log"
215215
grep -q 'systemctl restart airplanes-feed' "$ROOT_DIR/commands.log"
216-
grep -q 'target-at-restart=TARGET="--net-connector feed.airplanes.live,30004,beast_reduce_plus_out,feed.airplanes.live,64004"' "$ROOT_DIR/commands.log"
216+
grep -q 'target-at-restart=TARGET="--net-connector feed.airplanes.live,30004,beast_reduce_plus_out,feed2.airplanes.live,64004"' "$ROOT_DIR/commands.log"
217217
}

update.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ fi
220220

221221
if [[ -f "$FEED_ENV" ]]; then
222222
sed -i -e 's/beast_reduce_out,/beast_reduce_plus_out,/g' "$FEED_ENV" || true
223+
sed -i -e 's/beast_reduce_plus_out,feed\.airplanes\.live,64004/beast_reduce_plus_out,feed2.airplanes.live,64004/g' "$FEED_ENV" || true
223224
fi
224225

225226
if [[ -f "$BOOT_ENV" ]]; then

0 commit comments

Comments
 (0)