mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-06 02:37:25 +01:00
fix entrypoint logic for checking if root
This commit is contained in:
parent
0ec91c3391
commit
dde2761a8c
@ -46,7 +46,7 @@ fi
|
|||||||
./docker-dlc.sh
|
./docker-dlc.sh
|
||||||
|
|
||||||
EXEC=""
|
EXEC=""
|
||||||
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 -o -u "$PUID" factorio
|
usermod -o -u "$PUID" factorio
|
||||||
groupmod -o -g "$PGID" factorio
|
groupmod -o -g "$PGID" factorio
|
||||||
|
Loading…
Reference in New Issue
Block a user