mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-06-15 04:47:00 +00:00
Update apply_cluster_postboot.sh
This commit is contained in:
@@ -355,14 +355,18 @@ if command -v jq >/dev/null 2>&1 && [[ -f "$COMPONENTS_STATUS" ]]; then
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo " → $comp (running $installer --auto-reinstall)"
|
echo " → $comp (running $installer --auto-reinstall)"
|
||||||
# Run with limited output capture. The installer logs in full to
|
# Redirect to a per-component log instead of piping. NVIDIA's
|
||||||
# its own log file; we only echo a tail here for the operator.
|
# runfile installer forks helpers that inherit stdout, so a
|
||||||
bash "$installer" --auto-reinstall 2>&1 | sed -e 's/^/ /' | tail -15
|
# `bash $installer | sed | tail` pipeline never sees EOF after
|
||||||
rc=${PIPESTATUS[0]}
|
# the parent exits and hangs until systemd kills the unit.
|
||||||
|
comp_log="/var/log/proxmenux/component-${comp}-$(date +%Y%m%d_%H%M%S).log"
|
||||||
|
bash "$installer" --auto-reinstall >"$comp_log" 2>&1
|
||||||
|
rc=$?
|
||||||
|
sed -e 's/^/ /' "$comp_log" | tail -15
|
||||||
if (( rc == 0 )); then
|
if (( rc == 0 )); then
|
||||||
echo " ✓ $comp ok"
|
echo " ✓ $comp ok (full log: $comp_log)"
|
||||||
else
|
else
|
||||||
echo " ✗ $comp installer exited $rc — see its own log"
|
echo " ✗ $comp installer exited $rc — see $comp_log"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user