Fix addon config

This commit is contained in:
Alexandre
2025-02-15 10:15:04 +01:00
parent d4626e6bca
commit e0fc2c8348
4 changed files with 169 additions and 54 deletions

View File

@@ -141,6 +141,6 @@
"slug": "immich",
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons",
"version": "1.126.1-2",
"version": "1.126.1-3",
"webui": "http://[HOST]:[PORT:8080]"
}

View File

@@ -87,7 +87,7 @@ setup_root_user() {
else
bashio::log.warning "DB_ROOT_PASSWORD not set. Generating a random 12-character alphanumeric password and storing it in the addon options."
export DB_ROOT_PASSWORD="$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c12)"
bashio::config "DB_ROOT_PASSWORD" "${DB_ROOT_PASSWORD}"
bashio::addon.option "DB_ROOT_PASSWORD" "${DB_ROOT_PASSWORD}"
# Store generated password in the s6 environment if available
if [ -d /var/run/s6/container_environment ]; then