factorio-docker/docker-entrypoint.sh

11 lines
198 B
Bash
Raw Normal View History

2016-10-25 16:49:23 +00:00
#!/bin/bash -x
2016-10-25 16:49:23 +00:00
SAVES=/opt/factorio/saves
2016-10-25 18:30:24 +00:00
if [ ! -f $SAVES/*.zip ]
then
2016-10-25 18:30:24 +00:00
/opt/factorio/bin/x64/factorio --create $SAVES/save.zip
fi
2016-10-25 12:33:45 -07:00
exec /opt/factorio/bin/x64/factorio --start-server-load-latest