output: unRAID_Essentials — array-start scripts now show already-correct status instead of silence
This commit is contained in:
@@ -146,10 +146,9 @@ fi
|
||||
# ==============================================================================================
|
||||
# ━━━ Idempotent Check ━━━
|
||||
# ==============================================================================================
|
||||
# Already correct — completely silent
|
||||
if [[ -f "$FILTER_FILE" ]] && \
|
||||
[[ "$(cat "$FILTER_FILE" 2>/dev/null)" == "$EXPECTED_FILTER" ]]; then
|
||||
log "Filter already correct — no changes needed"
|
||||
echo "Syslog filter already correct ✅"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
@@ -234,8 +234,7 @@ elif [[ "$CHANGED" -gt 0 ]]; then
|
||||
fi
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
else
|
||||
# Already correct — completely silent (runs every boot)
|
||||
log "inotify limits already correct — no changes needed"
|
||||
echo "inotify limits already correct ✅"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@@ -166,7 +166,7 @@ fi
|
||||
# ── Idempotent check ─────────────────────────────────────────────────────────────────────────
|
||||
CURRENT_VAL=$(grep -E "^pm\.max_children" "$PHP_CONF" 2>/dev/null | awk '{print $NF}')
|
||||
if [[ "${CURRENT_VAL:-0}" -eq "$PHP_MAX_CHILDREN" ]]; then
|
||||
log "pm.max_children already $PHP_MAX_CHILDREN — no changes needed"
|
||||
echo "pm.max_children already $PHP_MAX_CHILDREN ✅"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user