Fix migration when config is mounted (#318)

This commit is contained in:
Sandro
2020-05-23 03:05:56 +02:00
committed by GitHub
parent 44d4898862
commit ef6bbde78d
6 changed files with 1479 additions and 18 deletions

View File

@ -53,6 +53,8 @@ else
SU_EXEC=""
fi
sed -i '/write-data=/c\write-data=\/factorio/' /opt/factorio/config/config.ini
NRSAVES=$(find -L "$SAVES" -iname \*.zip -mindepth 1 | wc -l)
if [[ $GENERATE_NEW_SAVE != true && $NRSAVES == 0 ]]; then
GENERATE_NEW_SAVE=true