icorp host profiles into scripts that needed it

This commit is contained in:
2026-04-19 17:39:40 -04:00
parent cbfdc488c3
commit 4103e1be65
4 changed files with 64 additions and 6 deletions
+13
View File
@@ -43,6 +43,19 @@ if ! command -v jq >/dev/null 2>&1; then
exit 1
fi
# Select correct Emby instance based on which server is running this script
detect_hosts
if [[ "$LOCAL_SERVER_NAME" == "$HOST1" ]]; then
EMBY_URL="$HOST1_EMBY_URL"
EMBY_API_KEY="$HOST1_EMBY_API_KEY"
else
EMBY_URL="$HOST2_EMBY_URL"
EMBY_API_KEY="$HOST2_EMBY_API_KEY"
fi
info "Emby instance: $LOCAL_SERVER_NAME$EMBY_URL"
require_var EMBY_URL
require_var EMBY_API_KEY