mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-27 23:33:31 +02:00
fix(komga): poll komga directly instead of bashio::net.wait_for, clarify config path
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,9 +59,10 @@ authenticate through it.
|
|||||||
|
|
||||||
## Data
|
## Data
|
||||||
|
|
||||||
Komga's database, logs and search index are stored in the add-on configuration directory
|
Komga's database, logs and search index live in `/config` inside the add-on, which Home Assistant
|
||||||
(`/addon_configs/xxx-komga`), so they survive add-on updates. Libraries stay where you put them,
|
maps to this add-on's own configuration directory — `/addon_configs/<repository_id>_komga`, browsable
|
||||||
under `/media`, `/share` or a mounted disk.
|
with the Filebrowser add-on. They survive add-on updates. Libraries stay where you put them, under
|
||||||
|
`/media`, `/share` or a mounted disk.
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
|
|||||||
@@ -3,11 +3,17 @@
|
|||||||
set -e
|
set -e
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
# Wait for komga to become available. First boot builds the database, so leave
|
# Wait for komga to answer before nginx starts serving ingress. First boot
|
||||||
# it a wide margin before nginx starts answering ingress requests.
|
# builds the database, so leave a wide margin, but poll rather than call
|
||||||
# Non fatal : bashio and bashio-standalone disagree on the argument order, and
|
# bashio::net.wait_for : bashio takes (port host timeout) while the bundled
|
||||||
# a failed wait must not keep nginx (hence ingress) down.
|
# bashio-standalone.sh takes (host port timeout), and picking the wrong one
|
||||||
bashio::net.wait_for 25600 localhost 900 || true
|
# would either fail instantly or block for the whole timeout.
|
||||||
|
for _ in $(seq 1 180); do
|
||||||
|
if curl -sf -o /dev/null "http://127.0.0.1:25600/komga/"; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
|
||||||
bashio::log.info "Starting NGinx..."
|
bashio::log.info "Starting NGinx..."
|
||||||
exec nginx
|
exec nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user