2026-10-17 13:50:19 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -eu
|
|
|
|
|
# Exercise the game loop over authenticated RCON, and check that its data is writable.
|
|
|
|
|
test -s /factorio/config/rconpw
|
|
|
|
|
test -d /factorio/saves
|
|
|
|
|
test -w /factorio/saves
|
|
|
|
|
response=$(rcon /players online)
|
|
|
|
|
printf '%s\n' "$response" | grep -q 'Online players'
|