Pulse: binary path changed AGAIN; other fixes (#6770)

- Pretty much reverts the path change from yesterday
- Checks for and removes the /opt/pulse/bin and
/opt/pulse/frontend-modern dirs if they exist
- Disables shell access for pulse user for better security
This commit is contained in:
Chris
2025-08-12 15:09:25 -04:00
committed by GitHub
parent f9eb0cfa40
commit 47d773d088
2 changed files with 14 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 community-scripts ORG
# Author: rcourtman
# Author: rcourtman & vhsdream
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/rcourtman/Pulse
@@ -21,7 +21,7 @@ $STD apt-get install -y \
msg_ok "Installed Dependencies"
msg_info "Creating User"
if useradd -r -m -d /opt/pulse-home -s /bin/bash pulse; then
if useradd -r -m -d /opt/pulse-home -s /usr/sbin/nologin pulse; then
msg_ok "Created User"
else
msg_error "User creation failed"
@@ -44,7 +44,7 @@ Type=simple
User=pulse
Group=pulse
WorkingDirectory=/opt/pulse
ExecStart=/opt/pulse/bin/pulse
ExecStart=/opt/pulse/pulse
Restart=always
RestartSec=3
StandardOutput=journal