mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-03 23:54:55 +02:00
GitHub bot: fix linting issues (nobuild)
This commit is contained in:
@@ -5,8 +5,8 @@ set -euo pipefail
|
||||
CFG=/config/museum.yaml
|
||||
|
||||
if bashio::fs.file_exists "$CFG"; then
|
||||
bashio::log.info "Using existing $CFG"
|
||||
exit 0
|
||||
bashio::log.info "Using existing $CFG"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
bashio::log.info "Generating $CFG"
|
||||
@@ -21,12 +21,12 @@ DB_PASS="$(bashio::config 'DB_PASSWORD')"
|
||||
DB_NAME="$(bashio::config 'DB_DATABASE_NAME')"
|
||||
|
||||
if ${USE_EXTERNAL_DB}; then
|
||||
# override host/port for external DB (fall back if missing)
|
||||
DB_HOST="$(bashio::config 'DB_HOSTNAME')"
|
||||
DB_PORT="$(bashio::config 'DB_PORT')"
|
||||
bashio::log.info "museum.yaml will point to external Postgres at ${DB_HOST}:${DB_PORT}"
|
||||
# override host/port for external DB (fall back if missing)
|
||||
DB_HOST="$(bashio::config 'DB_HOSTNAME')"
|
||||
DB_PORT="$(bashio::config 'DB_PORT')"
|
||||
bashio::log.info "museum.yaml will point to external Postgres at ${DB_HOST}:${DB_PORT}"
|
||||
else
|
||||
bashio::log.info "museum.yaml will use internal Postgres."
|
||||
bashio::log.info "museum.yaml will use internal Postgres."
|
||||
fi
|
||||
|
||||
MINIO_USER="$(bashio::config 'MINIO_ROOT_USER')"
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
set -euo pipefail
|
||||
|
||||
if bashio::config.true 'USE_EXTERNAL_DB'; then
|
||||
bashio::log.info "External DB in use; skipping internal Postgres bootstrap."
|
||||
exit 0
|
||||
bashio::log.info "External DB in use; skipping internal Postgres bootstrap."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
bashio::log.info "Bootstrapping internal Postgres cluster…"
|
||||
@@ -14,8 +14,8 @@ DB_NAME="$(bashio::config 'DB_DATABASE_NAME')"
|
||||
|
||||
# Wait for postgres service (localhost)
|
||||
until pg_isready -q -h localhost -p 5432 -U postgres; do
|
||||
bashio::log.info "Waiting for Postgres to accept connections…"
|
||||
sleep 1
|
||||
bashio::log.info "Waiting for Postgres to accept connections…"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
bashio::log.info "Creating role + database if needed…"
|
||||
|
||||
0
ente/rootfs/etc/services.d/00-postgres/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/00-postgres/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/01-minio/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/01-minio/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/02-minio-init/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/02-minio-init/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/03-museum/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/03-museum/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/04-web/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/04-web/run
Normal file → Executable file
Reference in New Issue
Block a user