From dde2761a8c1997651edcde176657d5730b837716 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 a218017..db08fa0 100755 --- a/docker/files/docker-entrypoint.sh +++ b/docker/files/docker-entrypoint.sh @@ -46,7 +46,7 @@ fi ./docker-dlc.sh EXEC="" -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