Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Improve setup script clarity: reduce verbosity and fix confusing messages

[email protected]bddb90229bd6
diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go
index 1830ec80e8..2836d5cf8f 100644
--- a/internal/api/config_handlers.go
+++ b/internal/api/config_handlers.go
@@ -4189,7 +4189,7 @@ if [ "$TEMP_MONITORING_AVAILABLE" = true ] && [ "$PULSE_IS_CONTAINERIZED" = true
chmod +x "$PROXY_INSTALLER"
# Run installer with Pulse server as fallback
- INSTALL_OUTPUT=$("$PROXY_INSTALLER" --ctid "$PULSE_CTID" --pulse-server "$PULSE_URL" 2>&1)
+ INSTALL_OUTPUT=$("$PROXY_INSTALLER" --ctid "$PULSE_CTID" --pulse-server "$PULSE_URL" --quiet 2>&1)
INSTALL_STATUS=$?
if [ -n "$INSTALL_OUTPUT" ]; then
@@ -4322,11 +4322,11 @@ if [ "$SKIP_TEMPERATURE_PROMPT" = true ]; then
if [ -n "$DETECTED_CTID" ]; then
# Was deployed for containerized Pulse - use --ctid mode
- INSTALLER_ARGS="--ctid $DETECTED_CTID --pulse-server $PULSE_URL"
+ INSTALLER_ARGS="--ctid $DETECTED_CTID --pulse-server $PULSE_URL --quiet"
else
# Fallback to host-mode installation (works for standalone nodes and cluster nodes with external Pulse)
# We use --standalone flag to indicate host-level installation without container integration
- INSTALLER_ARGS="--standalone --http-mode --pulse-server $PULSE_URL"
+ INSTALLER_ARGS="--standalone --http-mode --pulse-server $PULSE_URL --quiet"
fi
if [ -n "$INSTALLER_ARGS" ]; then
@@ -4557,7 +4557,7 @@ elif [ "$TEMP_MONITORING_AVAILABLE" = true ]; then
PROXY_INSTALLER=$(mktemp)
if curl -fsSL "$PROXY_INSTALLER_URL" -o "$PROXY_INSTALLER" 2>/dev/null; then
chmod +x "$PROXY_INSTALLER"
- if "$PROXY_INSTALLER" --standalone --http-mode --pulse-server "$PULSE_URL"; then
+ if "$PROXY_INSTALLER" --standalone --http-mode --pulse-server "$PULSE_URL" --quiet; then
echo " ✓ pulse-sensor-proxy installed and registered with Pulse"
STANDALONE_PROXY_DEPLOYED=true
TEMPERATURE_ENABLED=true
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.sh
index c251439e66..d2eedcc9aa 100755
--- a/scripts/install-sensor-proxy.sh
+++ b/scripts/install-sensor-proxy.sh
@@ -1253,8 +1253,6 @@ if ! id -u pulse-sensor-proxy >/dev/null 2>&1; then
print_info "Creating pulse-sensor-proxy service account..."
useradd --system --user-group --no-create-home --shell /usr/sbin/nologin pulse-sensor-proxy
print_info "Service account created"
-else
- print_info "Service account pulse-sensor-proxy already exists"
fi
# Ensure group exists (in case user was created without it)