From 6a97cc279c51bf125b9b516d1795f85b208e6ad5 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Tue, 24 Dec 2024 16:07:35 +0100 Subject: [PATCH] fix: incorrect ownership of the public folder --- scripts/docker/create-user.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/docker/create-user.sh b/scripts/docker/create-user.sh index 386dac52..7fbe9a63 100644 --- a/scripts/docker/create-user.sh +++ b/scripts/docker/create-user.sh @@ -25,6 +25,8 @@ fi # Change ownership of the data directory mkdir -p /opt/app/backend/data find /opt/app/backend/data \( ! -group "${PGID}" -o ! -user "${PUID}" \) -exec chown "${PUID}:${PGID}" {} + +# Change ownership of the frontend public directory +find /opt/app/frontend/public \( ! -group "${PGID}" -o ! -user "${PUID}" \) -exec chown "${PUID}:${PGID}" {} + # Switch to the non-root user exec su-exec "$PUID:$PGID" "$@" \ No newline at end of file