mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-09-20 04:32:39 +02:00
fix entrypoint logic for checking if root
This commit is contained in:
parent
9eec6b9dd5
commit
3131523cbe
@ -41,7 +41,7 @@ if [[ ${UPDATE_MODS_ON_START:-} == "true" ]]; then
|
||||
./docker-update-mods.sh
|
||||
fi
|
||||
|
||||
if [[ $(id -u) = 0 ]]; then
|
||||
if [[ $(id -u) == 0 ]]; then
|
||||
# Update the User and Group ID based on the PUID/PGID variables
|
||||
usermod -o -u "$PUID" factorio
|
||||
groupmod -o -g "$PGID" factorio
|
||||
|
Loading…
Reference in New Issue
Block a user