Fix conflicting user group ids (#232)

This commit is contained in:
Dan Anstis 2019-04-21 20:15:01 +10:00 committed by Florian Kinder
parent 730b2c334b
commit eea1d550f2

View File

@ -36,8 +36,8 @@ 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
usermod -o -u $PUID factorio
groupmod -o -g $PGID factorio
# Take ownership of factorio data if running as root
chown -R factorio:factorio $FACTORIO_VOL
# Make sure we own temp