mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-23 07:46:05 +02:00
update
This commit is contained in:
@@ -39,5 +39,5 @@
|
|||||||
"slug": "postgres",
|
"slug": "postgres",
|
||||||
"udev": true,
|
"udev": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres",
|
||||||
"version": "15.7-43"
|
"version": "15.7-44"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ fix_permissions() {
|
|||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chown -R postgres:postgres "$PGDATA"
|
chown -R postgres:postgres "$PGDATA"
|
||||||
chmod 700 "$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"
|
chmod -R 755 "$CONFIG_HOME"
|
||||||
@@ -81,6 +85,7 @@ install_vchord_and_vectors_for_old_pg() {
|
|||||||
|
|
||||||
drop_vectors_everywhere() {
|
drop_vectors_everywhere() {
|
||||||
local old_pgver="$1"
|
local old_pgver="$1"
|
||||||
|
fix_permissions
|
||||||
su - postgres -c "$BINARIES_DIR/$old_pgver/bin/pg_ctl \
|
su - postgres -c "$BINARIES_DIR/$old_pgver/bin/pg_ctl \
|
||||||
-w -D '$PGDATA' -o \"-c config_file=/etc/postgresql/postgresql.conf \
|
-w -D '$PGDATA' -o \"-c config_file=/etc/postgresql/postgresql.conf \
|
||||||
-c listen_addresses='' -c port=65432\" start"
|
-c listen_addresses='' -c port=65432\" start"
|
||||||
|
|||||||
@@ -38,5 +38,5 @@
|
|||||||
"slug": "postgres_latest",
|
"slug": "postgres_latest",
|
||||||
"udev": true,
|
"udev": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres",
|
||||||
"version": "17.4-1"
|
"version": "17.4-2"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user