try to crash less if GID is already in use, see #896

This commit is contained in:
Shish 2023-01-30 21:57:32 +00:00
parent 120a5273e5
commit 4e6481d311

View file

@ -1,8 +1,8 @@
#!/bin/sh
groupadd -g $GID shimmie
groupadd -g $GID shimmie || true
useradd -ms /bin/bash -u $UID -g $GID shimmie
mkdir /app/data
chown shimmie:shimmie /app/data
mkdir -p /app/data
chown $UID:$GID /app/data
export PHP_CLI_SERVER_WORKERS=8
exec /usr/local/bin/su-exec shimmie:shimmie \
/usr/bin/php \