mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-08 18:59:09 +02:00
* fix(komga): restore add-on reverted by a transient ghcr login failure The amd64 builder job failed at docker login (denied: denied) before any build step ran, which tripped revert-on-failure. Re-running the same commit unchanged succeeded and both arch images are published. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(komga): poll komga directly instead of bashio::net.wait_for, clarify config path Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
16 lines
585 B
Bash
Executable File
16 lines
585 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
# Komga stores its database, logs and search index in KOMGA_CONFIGDIR, which the
|
|
# upstream image sets to /config -- that is the addon_config mount
|
|
|
|
CONFIG_LOCATION="/config"
|
|
bashio::log.info "Config stored in $CONFIG_LOCATION"
|
|
|
|
mkdir -p "$CONFIG_LOCATION"
|
|
# Numbered 20- on purpose : it must sort after 00-global_var.sh, which is what
|
|
# exports PUID/PGID from the addon options. The upstream image sets neither, so
|
|
# the fallbacks only apply when the module is absent.
|
|
chown -R "${PUID:-0}:${PGID:-0}" "$CONFIG_LOCATION"
|