This commit is contained in:
ai-dev
2025-09-21 22:41:33 +02:00
parent d9c1841ede
commit 1bf2e7f2b6
2 changed files with 13 additions and 6 deletions

View File

@@ -1,6 +1,13 @@
#!/command/with-contenv bash
set -euo pipefail
OPTIONS_FILE=/data/options.json
# Read options from Supervisor
admin_password=$(bashio::config 'admin_password')
# Export as environment variables for OpenSearch
export OPENSEARCH_INITIAL_ADMIN_PASSWORD="${admin_password}"
if [ ! -f "$OPTIONS_FILE" ]; then
echo "[cont-init] No options.json, skipping plugin install"
exit 0