Skip to content

Commit 1dce264

Browse files
rcourtmanclaude
andcommitted
Update pulse.sh to align with non-interactive installation
- Change paths from /opt/pulse-proxmox to /opt/pulse - Remove .env file backup/restore logic since Pulse now uses web-based configuration - Simplify permissions setting to match new installation approach 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f8f7466 commit 1dce264

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

ct/pulse.sh

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function update_script() {
2323
header_info
2424
check_container_storage
2525
check_container_resources
26-
if [[ ! -d /opt/pulse-proxmox ]]; then
26+
if [[ ! -d /opt/pulse ]]; then
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
@@ -34,25 +34,18 @@ function update_script() {
3434
msg_ok "Stopped ${APP}"
3535

3636
msg_info "Updating Pulse"
37-
if [[ -f /opt/pulse-proxmox/.env ]]; then
38-
cp /opt/pulse-proxmox/.env /tmp/.env.backup.pulse
39-
fi
4037
temp_file=$(mktemp)
41-
mkdir -p /opt/pulse-proxmox
42-
rm -rf /opt/pulse-proxmox/*
38+
mkdir -p /opt/pulse
39+
rm -rf /opt/pulse/*
4340
curl -fsSL "https://github.com/rcourtman/Pulse/releases/download/v${RELEASE}/pulse-v${RELEASE}.tar.gz" -o "$temp_file"
44-
tar zxf "$temp_file" --strip-components=1 -C /opt/pulse-proxmox
45-
if [[ -f /tmp/.env.backup.pulse ]]; then
46-
mv /tmp/.env.backup.pulse /opt/pulse-proxmox/.env
47-
fi
41+
tar zxf "$temp_file" --strip-components=1 -C /opt/pulse
4842
echo "${RELEASE}" >/opt/${APP}_version.txt
4943
msg_ok "Updated Pulse to ${RELEASE}"
5044

51-
msg_info "Setting permissions for /opt/pulse-proxmox..."
52-
chown -R pulse:pulse "/opt/pulse-proxmox"
53-
find "/opt/pulse-proxmox" -type d -exec chmod 755 {} \;
54-
find "/opt/pulse-proxmox" -type f -exec chmod 644 {} \;
55-
chmod 600 /opt/pulse-proxmox/.env
45+
msg_info "Setting permissions for /opt/pulse..."
46+
chown -R pulse:pulse "/opt/pulse"
47+
find "/opt/pulse" -type d -exec chmod 755 {} \;
48+
find "/opt/pulse" -type f -exec chmod 644 {} \;
5649
msg_ok "Set permissions."
5750

5851
msg_info "Starting ${APP}"

0 commit comments

Comments
 (0)