factorio-docker/docker-entrypoint.sh

11 lines
198 B
Bash
Raw Normal View History

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