mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-27 15:11:20 +01:00
test
This commit is contained in:
@@ -114,4 +114,6 @@ LABEL \
|
||||
# 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
|
||||
|
||||
@@ -38,5 +38,5 @@
|
||||
"slug": "postgres",
|
||||
"udev": true,
|
||||
"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"
|
||||
PGDATA="${PGDATA:-/config/database}"
|
||||
export PGDATA
|
||||
PG_VERSION_FILE="$PGDATA/pg_major_version"
|
||||
VECTOR_VERSION_FILE="$PGDATA/pgvector_version"
|
||||
|
||||
@@ -22,6 +23,11 @@ chmod 700 "$PGDATA"
|
||||
# Set permissions
|
||||
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
|
||||
if [ ! -f "$CONFIG_HOME/postgresql.conf" ]; then
|
||||
if [ -f /usr/local/share/postgresql/postgresql.conf.sample ]; then
|
||||
|
||||
Reference in New Issue
Block a user