common var fix
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ claude
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
arrs system error, can we delete movies from lidar when dropped from tmdb, 99% of the time its future movies that get dropped
|
arrs system error, can we delete movies from radar when dropped from tmdb, 99% of the time its future movies that get dropped
|
||||||
movie Silent Hill 2: The Movie (tmdbid 466226) was removed from TMDb
|
movie Silent Hill 2: The Movie (tmdbid 466226) was removed from TMDb
|
||||||
|
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ later.
|
|||||||
|
|
||||||
. add a script to check all docker containers and update any that still need it to run after the containers that get synced and updated.
|
. add a script to check all docker containers and update any that still need it to run after the containers that get synced and updated.
|
||||||
|
|
||||||
|
. add a script to find missing artist and album cover from fanart and itunes, or itunes as a fallback
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -463,8 +463,8 @@ detect_hosts() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# ── Set scalar aliases ────────────────────────────────────────────────────
|
# ── Set scalar aliases ────────────────────────────────────────────────────
|
||||||
MY_DISCORD_WEBHOOK="${!MY_ID}_DISCORD_WEBHOOK"
|
MY_DISCORD_WEBHOOK_VAR="${MY_ID}_DISCORD_WEBHOOK"
|
||||||
MY_DISCORD_WEBHOOK="${!MY_DISCORD_WEBHOOK:-}"
|
MY_DISCORD_WEBHOOK="${!MY_DISCORD_WEBHOOK_VAR:-}"
|
||||||
|
|
||||||
EMBY_CONTAINER_VAR="${MY_ID}_EMBY_CONTAINER"
|
EMBY_CONTAINER_VAR="${MY_ID}_EMBY_CONTAINER"
|
||||||
EMBY_CONTAINER="${!EMBY_CONTAINER_VAR:-}"
|
EMBY_CONTAINER="${!EMBY_CONTAINER_VAR:-}"
|
||||||
@@ -563,14 +563,14 @@ detect_hosts() {
|
|||||||
|
|
||||||
_alias_assoc() {
|
_alias_assoc() {
|
||||||
local alias_name="$1"
|
local alias_name="$1"
|
||||||
local source_var="${MY_ID}_${alias_name}"
|
local source_name="${MY_ID}_${alias_name}"
|
||||||
# Declare the alias as associative
|
|
||||||
eval "declare -gA ${alias_name}"
|
eval "declare -gA ${alias_name}"
|
||||||
# Copy each key from source to alias
|
local -n _assoc_src="${source_name}" 2>/dev/null || return 0
|
||||||
local key
|
local -n _assoc_dst="${alias_name}"
|
||||||
eval "for key in \"\${!${source_var}[@]:-}\"; do
|
local _assoc_key
|
||||||
eval \"${alias_name}[\\\"\$key\\\"]=\\\"\${${source_var}[\\\"\$key\\\"]}\\\"\"
|
for _assoc_key in "${!_assoc_src[@]}"; do
|
||||||
done"
|
_assoc_dst["$_assoc_key"]="${_assoc_src[$_assoc_key]}"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
_alias_assoc "WATCHDOG_CONTAINERS"
|
_alias_assoc "WATCHDOG_CONTAINERS"
|
||||||
@@ -1580,7 +1580,8 @@ check_unraid_version_parity() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Read remote version via SSH
|
# Read remote version via SSH
|
||||||
remote_version=$(ssh -i "$SSH_KEY" -o ConnectTimeout=10 root@"$REMOTE_SERVER" "grep -oP '(?<=version=")[^"]+' /etc/unraid-version 2>/dev/null" 2>/dev/null)
|
remote_version=$(ssh -i "$SSH_KEY" -o ConnectTimeout=10 root@"$REMOTE_SERVER" \
|
||||||
|
"grep -oP '(?<=version=\")[^\"]+' /etc/unraid-version 2>/dev/null" 2>/dev/null)
|
||||||
if [[ -z "$remote_version" ]]; then
|
if [[ -z "$remote_version" ]]; then
|
||||||
warn "Cannot read remote unRAID version from $REMOTE_SERVER_NAME — skipping parity check"
|
warn "Cannot read remote unRAID version from $REMOTE_SERVER_NAME — skipping parity check"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user