diff --git a/seafile/CHANGELOG.md b/seafile/CHANGELOG.md index 9bca56a89..adc3ad9e2 100644 --- a/seafile/CHANGELOG.md +++ b/seafile/CHANGELOG.md @@ -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. diff --git a/seafile/README.md b/seafile/README.md index 13947e27d..1e89c325d 100644 --- a/seafile/README.md +++ b/seafile/README.md @@ -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 diff --git a/seafile/config.yaml b/seafile/config.yaml index 101336a62..372769968 100644 --- a/seafile/config.yaml +++ b/seafile/config.yaml @@ -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] diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index 81d31fd9e..554d818e2 100755 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -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)