output: Media — success status visible, not-configured and disabled exits now echo
This commit is contained in:
@@ -103,7 +103,7 @@ unset _key
|
|||||||
|
|
||||||
# HOST guard — Lidarr runs on HOST1 only
|
# HOST guard — Lidarr runs on HOST1 only
|
||||||
if [[ -z "$LIDARR_URL" ]]; then
|
if [[ -z "$LIDARR_URL" ]]; then
|
||||||
log "Lidarr not configured for $MY_ID — nothing to do"
|
echo "Lidarr not configured for $MY_ID — skipping"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ elif [[ ${#FAILED[@]} -gt 0 ]]; then
|
|||||||
notify "Media permissions failed on $(hostname) — ${FAILED[*]}" \
|
notify "Media permissions failed on $(hostname) — ${FAILED[*]}" \
|
||||||
"Media Permissions" "warning"
|
"Media Permissions" "warning"
|
||||||
else
|
else
|
||||||
log "$ICON_DONE Status: done — ${#UPDATED[@]} shares updated"
|
echo "$ICON_DONE Status: done — ${#UPDATED[@]} shares updated"
|
||||||
fi
|
fi
|
||||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ parse_args "${_FILTERED[@]}"
|
|||||||
# ==============================================================================================
|
# ==============================================================================================
|
||||||
# ━━━ Setup ━━━
|
# ━━━ Setup ━━━
|
||||||
# ==============================================================================================
|
# ==============================================================================================
|
||||||
[[ "${PLAY_SYNC_ENABLED:-true}" != "true" ]] && log "Play state sync disabled" && exit 0
|
[[ "${PLAY_SYNC_ENABLED:-true}" != "true" ]] && echo "Play state sync disabled" && exit 0
|
||||||
|
|
||||||
SYNC_DAYS="${PLAY_SYNC_DAYS:-90}"
|
SYNC_DAYS="${PLAY_SYNC_DAYS:-90}"
|
||||||
SYNC_TYPES="${PLAY_SYNC_TYPES:-Movie,Episode,Audio}"
|
SYNC_TYPES="${PLAY_SYNC_TYPES:-Movie,Episode,Audio}"
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ acquire_lock
|
|||||||
detect_hosts
|
detect_hosts
|
||||||
|
|
||||||
if [[ -z "$RADARR_URL" ]]; then
|
if [[ -z "$RADARR_URL" ]]; then
|
||||||
log "Radarr not configured for $MY_ID — nothing to do"
|
echo "Radarr not configured for $MY_ID — skipping"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ acquire_lock
|
|||||||
detect_hosts
|
detect_hosts
|
||||||
|
|
||||||
if [[ -z "$SONARR_URL" ]]; then
|
if [[ -z "$SONARR_URL" ]]; then
|
||||||
log "Sonarr not configured for $MY_ID — nothing to do"
|
echo "Sonarr not configured for $MY_ID — skipping"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user