factorio-docker/docker-entrypoint.sh
2016-10-25 21:57:49 -07:00

15 lines
336 B
Bash
Executable File

#!/bin/bash -x
SAVES=/opt/factorio/saves
if [ ! -f $SAVES/*.zip ]
then
/opt/factorio/bin/x64/factorio \
--create $SAVES/save.zip \
--map-gen-settings /opt/factorio/data/map-gen-settings.json
fi
exec /opt/factorio/bin/x64/factorio \
--start-server-load-latest \
--server-settings /opt/factorio/data/server-settings.json