mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-14 03:18:02 +02:00
update
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
set -euo pipefail
|
||||
|
||||
MINIO_USER="$(bashio::config 'MINIO_ROOT_USER')"
|
||||
MINIO_PASS="$(bashio::config 'MINIO_ROOT_PASSWORD')"
|
||||
S3_BUCKET="$(bashio::config 'S3_BUCKET')"
|
||||
|
||||
bashio::log.info "Waiting for MinIO API…"
|
||||
until /usr/local/bin/mc alias set h0 http://localhost:3200 "${MINIO_USER}" "${MINIO_PASS}" 2>/dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
bashio::log.info "Ensuring bucket ${S3_BUCKET} exists…"
|
||||
/usr/local/bin/mc mb -p "h0/${S3_BUCKET}" || true
|
||||
bashio::log.info "MinIO bucket ready."
|
||||
exit 0
|
||||
@@ -1,27 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
set -euo pipefail
|
||||
|
||||
CFG=/config/museum.yaml
|
||||
if ! bashio::fs.file_exists "$CFG"; then
|
||||
bashio::log.error "$CFG not found; aborting museum start."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if bashio::config.true 'USE_EXTERNAL_DB'; then
|
||||
DB_HOST="$(bashio::config 'DB_HOSTNAME')"
|
||||
DB_PORT="$(bashio::config 'DB_PORT')"
|
||||
DB_USER="$(bashio::config 'DB_USERNAME')"
|
||||
bashio::log.info "Waiting for external Postgres at ${DB_HOST}:${DB_PORT}…"
|
||||
until pg_isready -q -h "${DB_HOST}" -p "${DB_PORT}" -U "${DB_USER}"; do
|
||||
sleep 2
|
||||
done
|
||||
else
|
||||
DB_USER="postgres"
|
||||
bashio::log.info "Waiting for internal Postgres…"
|
||||
until pg_isready -q -h localhost -p 5432 -U "${DB_USER}"; do
|
||||
sleep 2
|
||||
done
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting museum."
|
||||
exec /usr/bin/museum --config "$CFG"
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
set -euo pipefail
|
||||
if bashio::config.true 'DISABLE_WEB_UI'; then
|
||||
bashio::log.info "Web UI disabled by option."
|
||||
exit 0
|
||||
fi
|
||||
bashio::log.info "Starting Ente web."
|
||||
exec /usr/bin/ente-web
|
||||
Reference in New Issue
Block a user