From 877219f9c9fdbaf54d7ad5812a03b03112a18137 Mon Sep 17 00:00:00 2001 From: Yuki Hyou Date: Tue, 13 Mar 2018 16:19:24 +1100 Subject: [PATCH] Remove temp (invalid) saves on container start --- 0.16/docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/0.16/docker-entrypoint.sh b/0.16/docker-entrypoint.sh index b8d0a5e..f2afb22 100755 --- a/0.16/docker-entrypoint.sh +++ b/0.16/docker-entrypoint.sh @@ -28,6 +28,10 @@ if [ ! -f $CONFIG/map-settings.json ]; then cp /opt/factorio/data/map-settings.example.json $CONFIG/map-settings.json fi +if find -L $SAVES -iname \*.tmp.zip -mindepth 1 -print | grep -q .; then + rm -f $SAVES/*.tmp.zip +fi + if ! find -L $SAVES -iname \*.zip -mindepth 1 -print | grep -q .; then /opt/factorio/bin/x64/factorio \ --create $SAVES/_autosave1.zip \