fix: avoid recursive PostGIS startup ownership rewrite
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-22 03:58:56 +02:00
parent ab01c93d49
commit 20da1d3dd4
4 changed files with 12 additions and 1 deletions
+4 -1
View File
@@ -35,7 +35,10 @@ sed -i "s/__GEOINTEL_MAX_UPLOAD_MB__/${MAX_UPLOAD_MB}/g" /etc/nginx/conf.d/defau
nginx -t
mkdir -p "$PGDATA" "$STORAGE_ROOT" "$YOLO_CONFIG_DIR" /run/nginx /var/log/nginx
chown -R postgres:postgres "$PGDATA"
# The persisted database can contain millions of relation files. A recursive
# chown on every start rewrites metadata even when ownership is already right,
# delaying startup and creating avoidable recovery I/O.
chown postgres:postgres "$PGDATA"
postgres_pid=""
backend_pid=""