1
0
mirror of https://github.com/factoriotools/factorio-docker.git synced 2024-11-28 08:38:47 +02:00
factorio-docker-factoriotools/docker-entrypoint.sh
2016-10-26 17:26:47 +00:00

15 lines
451 B
Bash
Executable File

#!/bin/bash -x
SAVES=/opt/factorio/saves
if ! find $SAVES -iname \*.zip -mindepth 1 -print | grep -q .; then
#if [ -z $(find $SAVES -iname \*.zip -mindepth 1 -print | grep -q .) ]; 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