Pulse: v4.3.2+ (#6859)

- please send help
This commit is contained in:
Chris 2025-08-14 17:41:36 -04:00 committed by GitHub
parent 4ce7335482
commit a403da9f47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 12 deletions

View File

@ -34,28 +34,30 @@ function update_script() {
fi fi
RELEASE=$(curl -fsSL https://api.github.com/repos/rcourtman/Pulse/releases/latest | jq -r '.tag_name' | sed 's/^v//') RELEASE=$(curl -fsSL https://api.github.com/repos/rcourtman/Pulse/releases/latest | jq -r '.tag_name' | sed 's/^v//')
SERVICE_PATH="/etc/systemd/system"
if [[ "${RELEASE}" != "$(cat ~/.pulse 2>/dev/null)" ]] || [[ ! -f ~/.pulse ]]; then if [[ "${RELEASE}" != "$(cat ~/.pulse 2>/dev/null)" ]] || [[ ! -f ~/.pulse ]]; then
msg_info "Stopping ${APP}" msg_info "Stopping ${APP}"
systemctl stop pulse systemctl stop pulse*.service
msg_ok "Stopped ${APP}" msg_ok "Stopped ${APP}"
dirs=(/opt/pulse/bin /opt/pulse/frontend-modern) if [[ -f /opt/pulse/pulse ]]; then
for dir in "${dirs[@]}"; do rm -f /opt/pulse/pulse
if [[ -d "$dir" ]]; then
rm -rf "$dir"
fi fi
done
fetch_and_deploy_gh_release "pulse" "rcourtman/Pulse" "prebuild" "latest" "/opt/pulse" "*-linux-amd64.tar.gz" fetch_and_deploy_gh_release "pulse" "rcourtman/Pulse" "prebuild" "latest" "/opt/pulse" "*-linux-amd64.tar.gz"
chown -R pulse:pulse /etc/pulse /opt/pulse chown -R pulse:pulse /etc/pulse /opt/pulse
sed -i 's|bin/pulse|pulse|' /etc/systemd/system/pulse.service if [[ -f "$SERVICE_PATH"/pulse.service ]]; then
mv "$SERVICE_PATH"/pulse.service "$SERVICE_PATH"/pulse-backend.service
fi
sed -i -e 's|pulse/pulse|pulse/bin/pulse|' \
-e 's/^Environment="API.*$//' "$SERVICE_PATH"/pulse-backend.service
systemctl daemon-reload systemctl daemon-reload
if grep -q 'pulse-home:/bin/bash' /etc/passwd; then if grep -q 'pulse-home:/bin/bash' /etc/passwd; then
usermod -s /usr/sbin/nologin pulse usermod -s /usr/sbin/nologin pulse
fi fi
msg_info "Starting ${APP}" msg_info "Starting ${APP}"
systemctl start pulse systemctl start pulse-backend
msg_ok "Started ${APP}" msg_ok "Started ${APP}"
msg_ok "Updated Successfully" msg_ok "Updated Successfully"

View File

@ -39,6 +39,10 @@
{ {
"text": "After installation, access the web interface to configure your Proxmox connection details through the built-in setup wizard", "text": "After installation, access the web interface to configure your Proxmox connection details through the built-in setup wizard",
"type": "Info" "type": "Info"
},
{
"text": "Configure authentication in the Web UI => Settings => Security",
"type": "Info"
} }
] ]
} }

View File

@ -34,7 +34,7 @@ chown -R pulse:pulse /etc/pulse /opt/pulse
msg_ok "Installed Pulse" msg_ok "Installed Pulse"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/pulse.service cat <<EOF >/etc/systemd/system/pulse-backend.service
[Unit] [Unit]
Description=Pulse Monitoring Server Description=Pulse Monitoring Server
After=network.target After=network.target
@ -44,7 +44,7 @@ Type=simple
User=pulse User=pulse
Group=pulse Group=pulse
WorkingDirectory=/opt/pulse WorkingDirectory=/opt/pulse
ExecStart=/opt/pulse/pulse ExecStart=/opt/pulse/bin/pulse
Restart=always Restart=always
RestartSec=3 RestartSec=3
StandardOutput=journal StandardOutput=journal
@ -55,7 +55,7 @@ Environment="PULSE_DATA_DIR=/etc/pulse"
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now pulse systemctl enable -q --now pulse-backend
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh