Fix user and entrypoint stuff
All checks were successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful

This commit is contained in:
Ryan Voots 2024-08-01 08:25:52 -04:00
parent a39ed9f6ef
commit 9968836d28

View file

@ -1,5 +1,5 @@
#!/bin/sh
set -e
#!/bin/bash
set -euxo pipefail
DOCKER_USER='dockeruser'
DOCKER_GROUP='dockergroup'
@ -12,7 +12,7 @@ if ! id "$DOCKER_USER" >/dev/null 2>&1; then
echo "Starting with $USER_ID:$GROUP_ID (UID:GID)"
addgroup --gid $GROUP_ID $DOCKER_GROUP
adduser -s /bin/sh -u $USER_ID -G $DOCKER_GROUP -D $DOCKER_USER
adduser --shell /bin/sh --uid $USER_ID --gid $GROUP_ID $DOCKER_USER
chown -vR $USER_ID:$GROUP_ID /opt/minecraft
chmod -vR ug+rwx /opt/minecraft