fix: Docker DB init fails due to pg_restore error on existing database (#129)

pg_restore would fail because the dump contains CREATE DATABASE but
POSTGRES_DB already creates it. With set -e this aborted the script
before update/patch schemas could run.

- Allow pg_restore to continue past non-fatal errors
- Add --no-owner --no-acl to avoid permission mismatches
- Force LF line endings for .sh files via .gitattributes
- Quote file path variables in schema loops
This commit is contained in:
Houmgaor
2026-02-16 22:53:09 +01:00
parent be4cd2001c
commit 4c3810df7e
2 changed files with 13 additions and 13 deletions

3
.gitattributes vendored
View File

@@ -1,2 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto
# Force LF for shell scripts (prevents CRLF breakage in Docker containers)
*.sh text eol=lf