fix: preserve postgres config permissions to ensure 644 (#226)

This commit is contained in:
Zack Pollard
2025-05-27 15:00:58 +01:00
committed by GitHub
parent a709500a5b
commit 06b0291854

View File

@@ -5,7 +5,7 @@
case "${DB_STORAGE_TYPE^^}" in
SSD|HDD)
echo "Using ${DB_STORAGE_TYPE^^} storage"
cp -n "/etc/postgresql/postgresql.${DB_STORAGE_TYPE,,}.conf" /etc/postgresql/postgresql.conf
cp -n --preserve=mode "/etc/postgresql/postgresql.${DB_STORAGE_TYPE,,}.conf" /etc/postgresql/postgresql.conf
sed -i "s@##PGDATA@$PGDATA@" /etc/postgresql/postgresql.conf; \
;;
*)