Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

Fix: Enable immediate exit on errors in install-agent.sh (#1972)

Elan Ruusamäe82fc7728826e
diff --git a/supplemental/scripts/install-agent.sh b/supplemental/scripts/install-agent.sh
index e4e9dcea3..710978c07 100755
--- a/supplemental/scripts/install-agent.sh
+++ b/supplemental/scripts/install-agent.sh
@@ -286,6 +286,9 @@ detect_mips_endianness() {
echo "mips"
}
+# Ensure script exits immediately on errors
+set -eu
+
# Default values
PORT=45876
UNINSTALL=false