Skip to content

Commit f8f7466

Browse files
rcourtmanclaude
andcommitted
fix: streamline Pulse installation for web-based configuration
- Remove all interactive prompts during installation - Remove .env setup (handled by web UI) - Remove configuration messages (handled by web UI) - Change install directory from /opt/pulse-proxmox to /opt/pulse - Update JSON note to reflect web-based setup wizard Pulse now features a complete web-based configuration system with automatic setup detection, making manual .env configuration obsolete. The new workflow: 1. Script installs Pulse without any user interaction 2. Service starts automatically 3. User navigates to the provided URL 4. Pulse shows setup wizard for configuration 5. No SSH or manual file editing required This provides the ideal community script experience - completely hands-off installation with configuration through the web interface. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4fba20d commit f8f7466

File tree

2 files changed

+15
-25
lines changed

2 files changed

+15
-25
lines changed

frontend/public/json/pulse.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"documentation": null,
1313
"website": "https://github.com/rcourtman/Pulse",
1414
"logo": "https://raw.githubusercontent.com/rcourtman/Pulse/main/src/public/logos/pulse-logo-256x256.png",
15-
"config_path": "/opt/pulse-proxmox/.env",
15+
"config_path": "/opt/pulse/.env",
1616
"description": "A lightweight monitoring application for Proxmox VE that displays real-time status for VMs and containers via a simple web interface.",
1717
"install_methods": [
1818
{
@@ -35,6 +35,10 @@
3535
{
3636
"text": "Create Proxmox-API-Token first: `https://github.com/rcourtman/Pulse?tab=readme-ov-file#creating-a-proxmox-api-token`",
3737
"type": "Info"
38+
},
39+
{
40+
"text": "After installation, access the web interface to configure your Proxmox connection details through the built-in setup wizard",
41+
"type": "Info"
3842
}
3943
]
4044
}

install/pulse-install.sh

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,17 @@ NODE_VERSION="20" install_node_and_modules
3232
msg_info "Setup Pulse"
3333
RELEASE=$(curl -fsSL https://api.github.com/repos/rcourtman/Pulse/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3434
temp_file=$(mktemp)
35-
mkdir -p /opt/pulse-proxmox
35+
mkdir -p /opt/pulse
3636
curl -fsSL "https://github.com/rcourtman/Pulse/releases/download/v${RELEASE}/pulse-v${RELEASE}.tar.gz" -o "$temp_file"
37-
tar zxf "$temp_file" --strip-components=1 -C /opt/pulse-proxmox
37+
tar zxf "$temp_file" --strip-components=1 -C /opt/pulse
3838
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
3939
msg_ok "Installed Pulse"
4040

41-
read -rp "${TAB3}Proxmox Host (z. B. https://proxmox.example.com:8006): " PROXMOX_HOST
42-
read -rp "${TAB3}Proxmox Token ID (z. B. user@pam!mytoken): " PROXMOX_TOKEN_ID
43-
read -rp "${TAB3}Proxmox Token Secret: " PROXMOX_TOKEN_SECRET
44-
read -rp "${TAB3}Port (default: 7655): " PORT
45-
PORT="${PORT:-7655}"
4641

47-
msg_info "Creating .env file"
48-
cat <<EOF >/opt/pulse-proxmox/.env
49-
PROXMOX_HOST=${PROXMOX_HOST}
50-
PROXMOX_TOKEN_ID=${PROXMOX_TOKEN_ID}
51-
PROXMOX_TOKEN_SECRET=${PROXMOX_TOKEN_SECRET}
52-
PORT=${PORT}
53-
EOF
54-
msg_ok "Created .env file"
55-
56-
msg_info "Setting permissions for /opt/pulse-proxmox..."
57-
chown -R pulse:pulse "/opt/pulse-proxmox"
58-
find "/opt/pulse-proxmox" -type d -exec chmod 755 {} \;
59-
find "/opt/pulse-proxmox" -type f -exec chmod 644 {} \;
60-
chmod 600 /opt/pulse-proxmox/.env
42+
msg_info "Setting permissions for /opt/pulse..."
43+
chown -R pulse:pulse "/opt/pulse"
44+
find "/opt/pulse" -type d -exec chmod 755 {} \;
45+
find "/opt/pulse" -type f -exec chmod 644 {} \;
6146
msg_ok "Set permissions."
6247

6348
msg_info "Creating Service"
@@ -70,8 +55,8 @@ After=network.target
7055
Type=simple
7156
User=pulse
7257
Group=pulse
73-
WorkingDirectory=/opt/pulse-proxmox
74-
EnvironmentFile=/opt/pulse-proxmox/.env
58+
WorkingDirectory=/opt/pulse
59+
EnvironmentFile=/opt/pulse/.env
7560
ExecStart=/usr/bin/npm run start
7661
Restart=on-failure
7762
RestartSec=5
@@ -87,8 +72,9 @@ msg_ok "Created Service"
8772
motd_ssh
8873
customize
8974

75+
9076
msg_info "Cleaning up"
9177
rm -f "$temp_file"
9278
$STD apt-get -y autoremove
9379
$STD apt-get -y autoclean
94-
msg_ok "Cleaned"
80+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)