factorio-docker/docker-entrypoint.sh

11 lines
193 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 21:30:12 +02:00
/opt/factorio/bin/x64/factorio --start-server-load-latest