1
0
This commit is contained in:
Zef Hemel 2023-11-30 15:19:08 +01:00
parent 2430a4f012
commit 8451680c01

View File

@ -16,7 +16,7 @@ if [ "$PUID" == "0" ] || [ "$UID" != "0" ]; then
deno run -A --unstable /silverbullet.js $@ deno run -A --unstable /silverbullet.js $@
else else
# Create silverbullet user and group ad-hoc mapped to PUID and PGID # 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 id -u silverbullet &> /dev/null || useradd -M -u $PUID -g $PGID silverbullet
# And make sure /deno-dir (Deno cache) is accessible # And make sure /deno-dir (Deno cache) is accessible
chown -R $PUID:$PGID /deno-dir chown -R $PUID:$PGID /deno-dir