mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-17 04:49:13 +02:00
Show log
This commit is contained in:
@@ -332,7 +332,6 @@ main() {
|
|||||||
|
|
||||||
bashio::log.info "Waiting for PostgreSQL to start..."
|
bashio::log.info "Waiting for PostgreSQL to start..."
|
||||||
|
|
||||||
(
|
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_HOSTNAME=localhost
|
DB_HOSTNAME=localhost
|
||||||
DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')"
|
DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')"
|
||||||
@@ -344,10 +343,8 @@ main() {
|
|||||||
export DB_PORT DB_HOSTNAME DB_USERNAME DB_PASSWORD
|
export DB_PORT DB_HOSTNAME DB_USERNAME DB_PASSWORD
|
||||||
|
|
||||||
wait_for_postgres
|
wait_for_postgres
|
||||||
|
|
||||||
restart_immich_addons_if_flagged
|
restart_immich_addons_if_flagged
|
||||||
|
|
||||||
# Remove vectors from 'postgres' db only (safe, idempotent)
|
|
||||||
su - postgres -c "psql -d postgres -c 'DROP EXTENSION IF EXISTS vectors CASCADE;'"
|
su - postgres -c "psql -d postgres -c 'DROP EXTENSION IF EXISTS vectors CASCADE;'"
|
||||||
|
|
||||||
upgrade_extension_if_needed "vectors"
|
upgrade_extension_if_needed "vectors"
|
||||||
@@ -367,7 +364,6 @@ main() {
|
|||||||
echo "Cleaning /config/backups now that upgrade is done"
|
echo "Cleaning /config/backups now that upgrade is done"
|
||||||
rm -r /config/backups
|
rm -r /config/backups
|
||||||
fi
|
fi
|
||||||
) & true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|||||||
Reference in New Issue
Block a user