Skip to content

Commit

Permalink
fix: incorrect ownership of the public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Dec 24, 2024
1 parent 7e09ae1 commit 6a97cc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/docker/create-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"

0 comments on commit 6a97cc2

Please sign in to comment.