diff --git a/postgres_15/config.json b/postgres_15/config.json index 6be43607e..39f69f249 100644 --- a/postgres_15/config.json +++ b/postgres_15/config.json @@ -39,5 +39,5 @@ "slug": "postgres", "udev": true, "url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres", - "version": "15.7-43" + "version": "15.7-44" } diff --git a/postgres_15/rootfs/etc/cont-init.d/99-run.sh b/postgres_15/rootfs/etc/cont-init.d/99-run.sh index 4371689f7..d836e7141 100755 --- a/postgres_15/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres_15/rootfs/etc/cont-init.d/99-run.sh @@ -12,6 +12,10 @@ fix_permissions() { mkdir -p "$PGDATA" chown -R postgres:postgres "$PGDATA" chmod 700 "$PGDATA" + if [ -d /config/backups ]; then + chown -R postgres:postgres /config/backups + chmod 700 /config/backups + fi } chmod -R 755 "$CONFIG_HOME" @@ -81,6 +85,7 @@ install_vchord_and_vectors_for_old_pg() { drop_vectors_everywhere() { local old_pgver="$1" + fix_permissions su - postgres -c "$BINARIES_DIR/$old_pgver/bin/pg_ctl \ -w -D '$PGDATA' -o \"-c config_file=/etc/postgresql/postgresql.conf \ -c listen_addresses='' -c port=65432\" start" diff --git a/postgres_17/config.json b/postgres_17/config.json index 224aa83b5..8b3caabbc 100644 --- a/postgres_17/config.json +++ b/postgres_17/config.json @@ -38,5 +38,5 @@ "slug": "postgres_latest", "udev": true, "url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres", - "version": "17.4-1" + "version": "17.4-2" }