all scripts calling for emby are now consolidated to the main variables with hosts
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user