mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-26 17:24:44 +01:00
Fix conflicting user group ids (#232)
This commit is contained in:
parent
730b2c334b
commit
eea1d550f2
@ -36,8 +36,8 @@ fi
|
|||||||
|
|
||||||
if [ "$(id -u)" = '0' ]; then
|
if [ "$(id -u)" = '0' ]; then
|
||||||
# Update the User and Group ID based on the PUID/PGID variables
|
# Update the User and Group ID based on the PUID/PGID variables
|
||||||
usermod -u $PUID factorio
|
usermod -o -u $PUID factorio
|
||||||
groupmod -g $PGID factorio
|
groupmod -o -g $PGID factorio
|
||||||
# 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user