blob: 8077a1c5ada6c18e50b75302b09f630433539425 [file] [log] [blame]
#!/bin/bash
echo "entrypoint.sh starting..."
if [ ! -d /data ]; then
echo "/data is not mounted, exiting."
exit 1
fi
cd /data
if [ ! -f /data/game.zip ]; then
echo "No save game, creating new..."
/factorio/bin/x64/factorio --create game
fi
echo "Running with args: $@"
exec /factorio/bin/x64/factorio --start-server game "$@"