From 8451680c01c533d3a648df8cf0b5e0bda7fe2dd3 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 30 Nov 2023 15:19:08 +0100 Subject: [PATCH] Fixes #590 --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2a47929a..37595b72 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -16,7 +16,7 @@ if [ "$PUID" == "0" ] || [ "$UID" != "0" ]; then deno run -A --unstable /silverbullet.js $@ else # Create silverbullet user and group ad-hoc mapped to PUID and PGID - getent group silverbullet || groupadd -g $PGID silverbullet + getent group silverbullet &> /dev/null || groupadd -g $PGID silverbullet id -u silverbullet &> /dev/null || useradd -M -u $PUID -g $PGID silverbullet # And make sure /deno-dir (Deno cache) is accessible chown -R $PUID:$PGID /deno-dir