mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-03 11:50:32 +02:00
test
This commit is contained in:
@@ -114,4 +114,6 @@ LABEL \
|
|||||||
# 6 HealthcheckNOT #
|
# 6 HealthcheckNOT #
|
||||||
####################
|
####################
|
||||||
|
|
||||||
|
HEALTHCHECK NONE
|
||||||
|
|
||||||
# Can't be implemented as container is optimized for memory usage, so the webserver and Node are spun down during idle
|
# Can't be implemented as container is optimized for memory usage, so the webserver and Node are spun down during idle
|
||||||
|
|||||||
@@ -38,5 +38,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-29"
|
"version": "15.7-29_test"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ set -e
|
|||||||
|
|
||||||
CONFIG_HOME="/config"
|
CONFIG_HOME="/config"
|
||||||
PGDATA="${PGDATA:-/config/database}"
|
PGDATA="${PGDATA:-/config/database}"
|
||||||
|
export PGDATA
|
||||||
PG_VERSION_FILE="$PGDATA/pg_major_version"
|
PG_VERSION_FILE="$PGDATA/pg_major_version"
|
||||||
VECTOR_VERSION_FILE="$PGDATA/pgvector_version"
|
VECTOR_VERSION_FILE="$PGDATA/pgvector_version"
|
||||||
|
|
||||||
@@ -22,6 +23,11 @@ chmod 700 "$PGDATA"
|
|||||||
# Set permissions
|
# Set permissions
|
||||||
chmod -R 755 "$CONFIG_HOME"
|
chmod -R 755 "$CONFIG_HOME"
|
||||||
|
|
||||||
|
bashio::log.info "Starting entrypoint"
|
||||||
|
/usr/local/bin/immich-docker-entrypoint.sh postgres -c config_file=/etc/postgresql/postgresql.conf
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
# Ensure PostgreSQL config file exists
|
# Ensure PostgreSQL config file exists
|
||||||
if [ ! -f "$CONFIG_HOME/postgresql.conf" ]; then
|
if [ ! -f "$CONFIG_HOME/postgresql.conf" ]; then
|
||||||
if [ -f /usr/local/share/postgresql/postgresql.conf.sample ]; then
|
if [ -f /usr/local/share/postgresql/postgresql.conf.sample ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user