mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-07-04 07:58:13 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
979326ebf6 | |||
d5ac333364 | |||
e941e9a2c8 |
@ -22,8 +22,7 @@ if [ ! -f $CONFIG/server-settings.json ]; then
|
||||
fi
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
@ -48,6 +47,7 @@ if [ "$(id -u)" = '0' ]; then
|
||||
# Take ownership of factorio data if running as root
|
||||
chown -R factorio:factorio $FACTORIO_VOL
|
||||
# Make sure we own temp
|
||||
mkdir -p /opt/factorio/temp
|
||||
chown -R factorio:factorio /opt/factorio/temp
|
||||
# Drop to the factorio user
|
||||
SU_EXEC="su-exec factorio"
|
||||
|
Reference in New Issue
Block a user