make sure /opt/factorio/temp exists

This commit is contained in:
David Andersen 2019-02-27 19:09:35 +00:00
parent 6fece0c9e3
commit d5ac333364

View File

@ -48,6 +48,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"