Skip to content

Commit 8e8e096

Browse files
authored
Pulse: use prebuild tarball file / remove unneeded npm actions (#4776)
* Pulse: use new tarball file * Update pulse.sh * Update pulse-install.sh * remove npm packages
1 parent 6ef1c99 commit 8e8e096

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

ct/pulse.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,11 @@ function update_script() {
4040
temp_file=$(mktemp)
4141
mkdir -p /opt/pulse-proxmox
4242
rm -rf /opt/pulse-proxmox/*
43-
curl -fsSL "https://github.com/rcourtman/Pulse/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
43+
curl -fsSL "https://github.com/rcourtman/Pulse/releases/download/v${RELEASE}/pulse-v${RELEASE}.tar.gz" -o "$temp_file"
4444
tar zxf "$temp_file" --strip-components=1 -C /opt/pulse-proxmox
4545
if [[ -f /tmp/.env.backup.pulse ]]; then
4646
mv /tmp/.env.backup.pulse /opt/pulse-proxmox/.env
4747
fi
48-
cd /opt/pulse-proxmox
49-
$STD npm install --unsafe-perm
50-
cd /opt/pulse-proxmox/server
51-
$STD npm install --unsafe-perm
52-
cd /opt/pulse-proxmox
53-
$STD npm run build:css
5448
echo "${RELEASE}" >/opt/${APP}_version.txt
5549
msg_ok "Updated Pulse to ${RELEASE}"
5650

install/pulse-install.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@ 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)
3535
mkdir -p /opt/pulse-proxmox
36-
curl -fsSL "https://github.com/rcourtman/Pulse/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
36+
curl -fsSL "https://github.com/rcourtman/Pulse/releases/download/v${RELEASE}/pulse-v${RELEASE}.tar.gz" -o "$temp_file"
3737
tar zxf "$temp_file" --strip-components=1 -C /opt/pulse-proxmox
38-
cd /opt/pulse-proxmox
39-
$STD npm install --unsafe-perm
40-
cd /opt/pulse-proxmox/server
41-
$STD npm install --unsafe-perm
42-
cd /opt/pulse-proxmox
43-
$STD npm run build:css
4438
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
4539
msg_ok "Installed Pulse"
4640

0 commit comments

Comments
 (0)