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:
parent
7e09ae1f98
commit
6a97cc279c
1 changed files with 2 additions and 0 deletions
|
@ -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" "$@"
|
Loading…
Reference in a new issue