mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-07-10 02:55:21 +02:00
Add support for changing UID/GID (#216)
* Add support for changing UID/GID * Revert volume definition in docker-compose file
This commit is contained in:
committed by
Florian Kinder
parent
2ffac3c4a8
commit
288f080ebc
@ -35,6 +35,9 @@ if find -L $SAVES -iname \*.tmp.zip -mindepth 1 -print | grep -q .; then
|
||||
fi
|
||||
|
||||
if [ "$(id -u)" = '0' ]; then
|
||||
# Update the User and Group ID based on the PUID/PGID variables
|
||||
usermod -u $PUID factorio
|
||||
groupmod -g $PGID factorio
|
||||
# Take ownership of factorio data if running as root
|
||||
chown -R factorio:factorio $FACTORIO_VOL
|
||||
# Make sure we own temp
|
||||
|
Reference in New Issue
Block a user