0
Fork 0
mirror of https://github.com/stonith404/pingvin-share.git synced 2025-01-15 01:14:27 -05:00

fix: incorrect ownership of the public folder

This commit is contained in:
Elias Schneider 2024-12-24 16:07:35 +01:00
parent 7e09ae1f98
commit 6a97cc279c
No known key found for this signature in database
GPG key ID: 07E623B294202B6C

View file

@ -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" "$@"