From d832ca6ad57b29765369b90b50c39c5f0780ebdd Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 21 Dec 2021 17:25:50 +0100 Subject: [PATCH] fix: Create missing directory for appuser (needed by marp) --- docker/entrypoint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 2f403b8..ce4c0a4 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -13,6 +13,7 @@ EXT_GID=${EXT_GID:-999} mkdir -p _cache mkdir -p _build mkdir -p .marp +mkdir -p /home/appuser # Create user with given ID if needed if ! grep -q "^[^:]*:[^:]*:$EXT_UID:" /etc/group ; then @@ -24,11 +25,10 @@ if ! grep -q "^[^:]*:[^:]*:$EXT_UID:" /etc/passwd ; then useradd -r -u "$EXT_UID" -g appuser appuser fi -if [ -d "_build" ]; then - chown -R "$EXT_UID:$EXT_GID" _cache - chown -R "$EXT_UID:$EXT_GID" _build - chown -R "$EXT_UID:$EXT_GID" .marp -fi +chown -R "$EXT_UID:$EXT_GID" _cache +chown -R "$EXT_UID:$EXT_GID" _build +chown -R "$EXT_UID:$EXT_GID" .marp +chown -R "$EXT_UID:$EXT_GID" /home/appuser if [ "$1" = "shell" ]; then exec bash