Fix migration when config is mounted

Fixes #317
This commit is contained in:
Sandro Jäckel
2020-05-20 02:04:47 +02:00
parent 44d4898862
commit cc1c9ec419
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