fix: incorrect ownership of the public folder
This commit is contained in:
@@ -25,6 +25,8 @@ fi
|
|||||||
# Change ownership of the data directory
|
# Change ownership of the data directory
|
||||||
mkdir -p /opt/app/backend/data
|
mkdir -p /opt/app/backend/data
|
||||||
find /opt/app/backend/data \( ! -group "${PGID}" -o ! -user "${PUID}" \) -exec chown "${PUID}:${PGID}" {} +
|
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
|
# Switch to the non-root user
|
||||||
exec su-exec "$PUID:$PGID" "$@"
|
exec su-exec "$PUID:$PGID" "$@"
|
||||||
Reference in New Issue
Block a user