mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-07 11:17:23 +01:00
take ownership of /opt/factorio/temp
This commit is contained in:
parent
324920cdf8
commit
10d000408c
@ -34,6 +34,10 @@ RUN mkdir -p /opt /factorio && \
|
|||||||
addgroup -g $PGID -S $GROUP && \
|
addgroup -g $PGID -S $GROUP && \
|
||||||
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
|
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
|
||||||
chown -R $USER:$GROUP /opt/factorio /factorio
|
chown -R $USER:$GROUP /opt/factorio /factorio
|
||||||
|
# mkdir -p /opt/factorio/temp && \
|
||||||
|
# chmod 777 -R /opt/factorio/temp && \
|
||||||
|
# mkdir -p /opt/factorio/temp && \
|
||||||
|
# chmod 777 -R /opt/factorio/temp && \
|
||||||
|
|
||||||
VOLUME /factorio
|
VOLUME /factorio
|
||||||
|
|
||||||
|
@ -47,7 +47,9 @@ fi
|
|||||||
if [ "$(id -u)" = '0' ]; then
|
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
|
||||||
# We want to drop to the factorio user
|
# Make sure we own temp
|
||||||
|
chown -R factorio:factorio /opt/factorio/temp
|
||||||
|
# Drop to the factorio user
|
||||||
SU_EXEC="su-exec factorio"
|
SU_EXEC="su-exec factorio"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user