1
0
Fork 0
hscloud/third_party/factorio/entrypoint.sh

19 lines
347 B
Bash

#!/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 "$@"