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.

fix: Agent install URL case-sensitivity and nohup compatibility. Related to #1129, #1132

rcourtmanc48d15ccbd8d
diff --git a/frontend-modern/src/components/AI/Chat/index.tsx b/frontend-modern/src/components/AI/Chat/index.tsx
index 8a3b435945..2042c85a5e 100644
--- a/frontend-modern/src/components/AI/Chat/index.tsx
+++ b/frontend-modern/src/components/AI/Chat/index.tsx
@@ -336,12 +336,12 @@ export const AIChat: Component<AIChatProps> = (props) => {
return (
<div
- class={`flex-shrink-0 h-full bg-white dark:bg-slate-900 border-l border-slate-200 dark:border-slate-700 flex flex-col transition-all duration-300 overflow-hidden ${isOpen() ? 'w-[480px]' : 'w-0 border-l-0'
+ class={`flex-shrink-0 h-full bg-white dark:bg-slate-900 border-l border-slate-200 dark:border-slate-700 flex flex-col transition-all duration-300 overflow-hidden ${isOpen() ? 'w-full sm:w-[480px]' : 'w-0 border-l-0'
}`}
>
<Show when={isOpen()}>
- {/* Header */}
- <div class="flex items-center justify-between px-4 py-3 border-b border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800/50">
+ {/* Header - wraps on mobile */}
+ <div class="flex flex-wrap items-center justify-between gap-2 px-4 py-3 border-b border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800/50">
<div class="flex items-center gap-3">
<div class="p-2 bg-gradient-to-br from-purple-500 to-violet-500 rounded-xl shadow-lg shadow-purple-500/20">
<svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
diff --git a/scripts/install.sh b/scripts/install.sh
index 870515295c..658f31fb6c 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -527,8 +527,10 @@ if [[ -z "$PULSE_URL" || -z "$PULSE_TOKEN" ]]; then
fail "Missing required arguments: --url and --token"
fi
-# Validate URL format (basic check)
-if [[ ! "$PULSE_URL" =~ ^https?:// ]]; then
+# Validate URL format (basic check) - case-insensitive for http:// or https://
+# Normalize to lowercase for the check
+url_lower=$(echo "$PULSE_URL" | tr '[:upper:]' '[:lower:]')
+if [[ ! "$url_lower" =~ ^https?:// ]]; then
fail "Invalid URL format. Must start with http:// or https://"
fi
@@ -994,8 +996,10 @@ EOF
log_info "Added startup entry to ${GO_SCRIPT}..."
# Start the agent now using the wrapper script (includes watchdog)
+ # Use shell backgrounding instead of nohup for broader compatibility (QNAP, etc.)
log_info "Starting agent with watchdog..."
- nohup bash "${WRAPPER_SCRIPT}" >> "/var/log/${AGENT_NAME}.log" 2>&1 &
+ bash "${WRAPPER_SCRIPT}" >> "/var/log/${AGENT_NAME}.log" 2>&1 &
+ disown 2>/dev/null || true # Disown if available to prevent SIGHUP
log_info "Installation complete!"
log_info "The agent will start automatically on boot."
@@ -1474,7 +1478,8 @@ do_start() {
fi
echo "Starting $NAME..."
# Start daemon in background, redirect output to log file
- nohup $DAEMON $DAEMON_ARGS >> "$LOGFILE" 2>&1 &
+ # Use shell backgrounding instead of nohup for broader compatibility (QNAP, etc.)
+ $DAEMON $DAEMON_ARGS >> "$LOGFILE" 2>&1 &
echo $! > "$PIDFILE"
sleep 1
if kill -0 "$(cat "$PIDFILE")" 2>/dev/null; then