all scripts calling for emby are now consolidated to the main variables with hosts

This commit is contained in:
2026-04-22 22:07:13 -04:00
parent 9fb7188db6
commit 2490301f3b
2 changed files with 23 additions and 27 deletions
+5 -5
View File
@@ -22,10 +22,10 @@
# authentication.db — API keys and sessions
# activity.db — activity log
#
# HOST1 repairs the shared production Emby (HOST1_EMBY_REPAIR_CONTAINER).
# HOST2 repairs its own personal Emby (HOST2_EMBY_REPAIR_CONTAINER).
# HOST1 repairs its own Emby (HOST1_EMBY_CONTAINER).
# HOST2 repairs its own Emby (HOST2_EMBY_CONTAINER).
# detect_hosts() selects the correct container at runtime.
# Config path is detected from Docker inspect — no hardcoded paths needed.
# Container name defined in Host Configuration in Master.conf.
# Supports --dry-run to show what would be checked without stopping Emby.
# -----------------------------------------------------------------------------------------------
@@ -55,9 +55,9 @@ acquire_lock
detect_hosts
if [[ "$LOCAL_SERVER_NAME" == "$HOST1" ]]; then
EMBY_CONTAINER="$HOST1_EMBY_REPAIR_CONTAINER"
EMBY_CONTAINER="$HOST1_EMBY_CONTAINER"
else
EMBY_CONTAINER="$HOST2_EMBY_REPAIR_CONTAINER"
EMBY_CONTAINER="$HOST2_EMBY_CONTAINER"
fi
info "Emby container: $LOCAL_SERVER_NAME$EMBY_CONTAINER"