Include WEEKLY_RESTART_CONTAINERS in remainder updates
docker_weekly_restart.sh restarts them but never pulls images — remainder is the only update path they have.
This commit is contained in:
@@ -29,8 +29,9 @@
|
|||||||
# Targets all currently running containers NOT in:
|
# Targets all currently running containers NOT in:
|
||||||
# DAILY_RESTART_CONTAINERS — already updated daily
|
# DAILY_RESTART_CONTAINERS — already updated daily
|
||||||
# emby + critical-data profiles — updated inline by the weekly sync window
|
# emby + critical-data profiles — updated inline by the weekly sync window
|
||||||
# WEEKLY_RESTART_CONTAINERS — restarted by docker_weekly_restart.sh after sync
|
|
||||||
# FALLBACK_*_TIER* — owned by the remote server's update cycle
|
# FALLBACK_*_TIER* — owned by the remote server's update cycle
|
||||||
|
# WEEKLY_RESTART_CONTAINERS are included — docker_weekly_restart.sh restarts
|
||||||
|
# them but doesn't pull images; remainder is the only place they get updated.
|
||||||
# Pull → compare → prune dangling images.
|
# Pull → compare → prune dangling images.
|
||||||
#
|
#
|
||||||
# ==============================================================================================
|
# ==============================================================================================
|
||||||
@@ -189,11 +190,6 @@ if [[ "$REMAINDER_MODE" == true ]]; then
|
|||||||
done
|
done
|
||||||
unset _weekly_str _weekly_arr
|
unset _weekly_str _weekly_arr
|
||||||
|
|
||||||
# Weekly restart containers — restarted by docker_weekly_restart.sh after sync
|
|
||||||
for _c in "${WEEKLY_RESTART_CONTAINERS[@]}"; do
|
|
||||||
[[ -n "$_c" ]] && _exclude["$_c"]=1
|
|
||||||
done
|
|
||||||
|
|
||||||
# Fallback coverage containers — owned by the remote server's update cycle.
|
# Fallback coverage containers — owned by the remote server's update cycle.
|
||||||
# This server runs them during fallback but should never update them independently.
|
# This server runs them during fallback but should never update them independently.
|
||||||
# Updating them here risks version divergence: if remote's writeback after handback
|
# Updating them here risks version divergence: if remote's writeback after handback
|
||||||
@@ -237,7 +233,7 @@ if [[ "$SHOW_STATUS" == true ]]; then
|
|||||||
echo "$ICON_HOST Identity: $MY_ID ($LOCAL_SERVER_NAME)"
|
echo "$ICON_HOST Identity: $MY_ID ($LOCAL_SERVER_NAME)"
|
||||||
echo "$ICON_GEAR Mode: $([[ "$REMAINDER_MODE" == true ]] && echo "remainder" || echo "normal (daily)")"
|
echo "$ICON_GEAR Mode: $([[ "$REMAINDER_MODE" == true ]] && echo "remainder" || echo "normal (daily)")"
|
||||||
if [[ "$REMAINDER_MODE" == true ]]; then
|
if [[ "$REMAINDER_MODE" == true ]]; then
|
||||||
echo "$ICON_CONTAINERS Containers: ${#TARGET_CONTAINERS[@]} running (excluding daily, weekly sync, weekly restart, and fallback)"
|
echo "$ICON_CONTAINERS Containers: ${#TARGET_CONTAINERS[@]} running (excluding daily, weekly sync, and fallback)"
|
||||||
for _c in "${TARGET_CONTAINERS[@]}"; do echo " $_c"; done
|
for _c in "${TARGET_CONTAINERS[@]}"; do echo " $_c"; done
|
||||||
else
|
else
|
||||||
echo "$ICON_CONTAINERS Containers: ${TARGET_CONTAINERS[*]}"
|
echo "$ICON_CONTAINERS Containers: ${TARGET_CONTAINERS[*]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user