FIX (docker): Chown /var/run/postgresql after UID/GID adjustment to fix PostgreSQL lock file permission denied on startup

This commit is contained in:
Rostislav Dugin
2026-03-31 14:24:43 +03:00
parent f287967b5d
commit d1c41ed53a

View File

@@ -312,6 +312,8 @@ if [ "\$CURRENT_UID" != "\$PUID" ]; then
usermod -o -u "\$PUID" postgres
fi
chown -R postgres:postgres /var/run/postgresql
# PostgreSQL 17 binary paths
PG_BIN="/usr/lib/postgresql/17/bin"