From bf5ecd7b7c761ed223d8bce8dcd91d670393aefe Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 15 May 2024 22:48:49 -0300 Subject: [PATCH] Skip spurious error during `id` --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1259022..7940e9c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,7 +8,7 @@ if [ -n "$PHP_EXTENSIONS" ]; then done fi -if ! id -u "user" >/dev/null ; then +if ! id -u "user" >/dev/null 2>&1; then useradd -u 1000 -m user mkdir /var/www/html/vendor chown -R user:user /var/www/html/vendor