Compare commits

..

3 Commits

Author SHA1 Message Date
979326ebf6 Merge pull request #189 from DBendit/fix-mapgen
Mapgen example fixed in 0.17.2
2019-02-27 11:10:11 -08:00
d5ac333364 make sure /opt/factorio/temp exists 2019-02-27 19:09:35 +00:00
e941e9a2c8 Mapgen example fixed in 0.17.2 2019-02-27 13:06:47 -06:00

View File

@ -22,8 +22,7 @@ if [ ! -f $CONFIG/server-settings.json ]; then
fi fi
if [ ! -f $CONFIG/map-gen-settings.json ]; then if [ ! -f $CONFIG/map-gen-settings.json ]; then
# TODO: Need a valid map-gen-settings.json cp /opt/factorio/data/map-gen-settings.example.json $CONFIG/map-gen-settings.json
# cp /opt/factorio/data/map-gen-settings.example.json $CONFIG/map-gen-settings.json
echo "{}" > $CONFIG/map-gen-settings.json echo "{}" > $CONFIG/map-gen-settings.json
fi fi
@ -48,6 +47,7 @@ if [ "$(id -u)" = '0' ]; then
# Take ownership of factorio data if running as root # Take ownership of factorio data if running as root
chown -R factorio:factorio $FACTORIO_VOL chown -R factorio:factorio $FACTORIO_VOL
# Make sure we own temp # Make sure we own temp
mkdir -p /opt/factorio/temp
chown -R factorio:factorio /opt/factorio/temp chown -R factorio:factorio /opt/factorio/temp
# Drop to the factorio user # Drop to the factorio user
SU_EXEC="su-exec factorio" SU_EXEC="su-exec factorio"