mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 09:21:03 +01:00
Fix Seafile database selection handling
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
- Added support for configuring extra environment variables via the `env_vars` add-on option alongside config.yaml. See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
|
||||
|
||||
## 12.0.16 (15-02-2026)
|
||||
- Handle list-based `database` options correctly so SQLite configurations skip MySQL initialization.
|
||||
|
||||
## 12.0.15 (18-12-2025)
|
||||
- Normalize `SERVICE_URL` and `FILE_SERVER_ROOT` values in `conf/seahub_settings.py` based on the add-on configuration to generate valid download links.
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
## ⚠ Open Issue : [🐛 [Seafile] 12.0.14 not started (opened 2025-09-15)](https://github.com/alexbelgium/hassio-addons/issues/2104) by [@KoalaMontana](https://github.com/KoalaMontana)
|
||||
# Home assistant add-on: seafile
|
||||
|
||||
|
||||
|
||||
@@ -128,5 +128,5 @@ services:
|
||||
slug: seafile
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
|
||||
version: 12.0.15
|
||||
version: 12.0.16
|
||||
webui: http://[HOST]:[PORT:8000]
|
||||
|
||||
@@ -119,7 +119,14 @@ bashio::log.info "FILE_SERVER_ROOT set to ${FILE_SERVER_ROOT_VALUE}"
|
||||
|
||||
bashio::log.info "Defining database"
|
||||
|
||||
case $(bashio::config 'database') in
|
||||
# The option is defined as a list, so grab the first entry when an array is
|
||||
# provided (Home Assistant stores multi-select options this way). Fallback to
|
||||
# the raw value to stay compatible with older configurations that used a
|
||||
# string.
|
||||
DATABASE_SELECTION=$(bashio::config 'database[0]' 2>/dev/null || true)
|
||||
DATABASE_SELECTION=${DATABASE_SELECTION:-$(bashio::config 'database')}
|
||||
|
||||
case "${DATABASE_SELECTION}" in
|
||||
|
||||
# Use sqlite
|
||||
sqlite)
|
||||
|
||||
Reference in New Issue
Block a user