The issue with the current chown script is that in a Kubernetes environment it will fail once the pod has spent too much time according to how much time the readiness probe is configured.
https://github.com/georchestra/geonetwork/blob/georchestra-gn4.2.x/web/src/docker/docker-entrypoint.d/00-adjust-perms
We should allow disabling this script in order to convert it to an initContainer because an initContainer won't be controlled by a readiness probe. It will take as much time as it wants.
The issue with the current chown script is that in a Kubernetes environment it will fail once the pod has spent too much time according to how much time the readiness probe is configured.
https://github.com/georchestra/geonetwork/blob/georchestra-gn4.2.x/web/src/docker/docker-entrypoint.d/00-adjust-perms
We should allow disabling this script in order to convert it to an initContainer because an initContainer won't be controlled by a readiness probe. It will take as much time as it wants.