Another attempt at fixing the entry point

This commit is contained in:
Zef Hemel
2025-09-23 16:10:34 +02:00
parent 91cc306210
commit b4d2a6fb5e
+1 -1
View File
@@ -37,7 +37,7 @@ if [ "$PUID" == "0" ] || [ "$UID" != "0" ]; then
else
# Create silverbullet user and group ad-hoc mapped to PUID and PGID
getent group $PGID &> /dev/null || addgroup -g $PGID silverbullet
getent passwd $PUID &> /dev/null || adduser -D -H -u $PUID -G $PGID silverbullet
getent passwd $PUID &> /dev/null || adduser -D -H -u $PUID silverbullet silverbullet
args="$@"
# And run via su as requested PUID, usually this will be 'silverbullet' but if a user with this idea already exists, we will use that
USERNAME=$(getent passwd $PUID | cut -d ":" -f 1)