From 3131523cbe7ba702009cbe3fb48b7b6747aeb14b Mon Sep 17 00:00:00 2001 From: Harry Hixon Date: Fri, 26 Nov 2021 21:46:34 -0800 Subject: [PATCH] fix entrypoint logic for checking if root --- docker/files/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/files/docker-entrypoint.sh b/docker/files/docker-entrypoint.sh index ccd7273..20308a3 100755 --- a/docker/files/docker-entrypoint.sh +++ b/docker/files/docker-entrypoint.sh @@ -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