mirror of
https://github.com/immich-app/base-images.git
synced 2025-09-10 07:24:16 +02:00
fix: preserve postgres config permissions to ensure 644 (#226)
This commit is contained in:
@@ -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; \
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user