Skip to content

Commit 7b24252

Browse files
committed
chore: update naming
1 parent 96727f2 commit 7b24252

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

src/game-server-node/game-server-node.controller.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -226,26 +226,21 @@ export class GameServerNodeController {
226226
echo "Waiting for Tailscale IP";
227227
228228
for i in {1..30}; do
229-
TS_IP=$(tailscale ip -4 2>/dev/null | head -n 1)
230-
if [ -n "$TS_IP" ]; then
229+
TAILSCALE_IP=$(tailscale ip -4 2>/dev/null | head -n 1)
230+
if [ -n "$TAILSCALE_IP" ]; then
231231
break
232232
fi
233233
sleep 2
234234
done
235235
236-
if [ -z "$TS_IP" ]; then
237-
echo "ERROR: Tailscale IP not assigned"
238-
exit 1
239-
fi
240-
241-
echo "Tailscale IP acquired: $TS_IP"
236+
echo "Tailscale IP: $TAILSCALE_IP"
242237
243238
mkdir -p /etc/rancher/k3s
244239
245240
rm -f /etc/rancher/k3s/config.yaml
246241
247242
cat <<-EOF >/etc/rancher/k3s/config.yaml
248-
node-ip: $TS_IP
243+
node-ip: $TAILSCALE_IP
249244
250245
kubelet-arg:
251246
- "cpu-manager-policy=static"

0 commit comments

Comments
 (0)