diff --git a/ct/pulse.sh b/ct/pulse.sh index 5808998506..8d8a379b8e 100644 --- a/ct/pulse.sh +++ b/ct/pulse.sh @@ -40,17 +40,11 @@ function update_script() { temp_file=$(mktemp) mkdir -p /opt/pulse-proxmox rm -rf /opt/pulse-proxmox/* - curl -fsSL "https://github.com/rcourtman/Pulse/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file" + curl -fsSL "https://github.com/rcourtman/Pulse/releases/download/v${RELEASE}/pulse-v${RELEASE}.tar.gz" -o "$temp_file" tar zxf "$temp_file" --strip-components=1 -C /opt/pulse-proxmox if [[ -f /tmp/.env.backup.pulse ]]; then mv /tmp/.env.backup.pulse /opt/pulse-proxmox/.env fi - cd /opt/pulse-proxmox - $STD npm install --unsafe-perm - cd /opt/pulse-proxmox/server - $STD npm install --unsafe-perm - cd /opt/pulse-proxmox - $STD npm run build:css echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated Pulse to ${RELEASE}" diff --git a/install/pulse-install.sh b/install/pulse-install.sh index 091af1bd97..5742a96629 100644 --- a/install/pulse-install.sh +++ b/install/pulse-install.sh @@ -33,14 +33,8 @@ msg_info "Setup Pulse" RELEASE=$(curl -fsSL https://api.github.com/repos/rcourtman/Pulse/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') temp_file=$(mktemp) mkdir -p /opt/pulse-proxmox -curl -fsSL "https://github.com/rcourtman/Pulse/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file" +curl -fsSL "https://github.com/rcourtman/Pulse/releases/download/v${RELEASE}/pulse-v${RELEASE}.tar.gz" -o "$temp_file" tar zxf "$temp_file" --strip-components=1 -C /opt/pulse-proxmox -cd /opt/pulse-proxmox -$STD npm install --unsafe-perm -cd /opt/pulse-proxmox/server -$STD npm install --unsafe-perm -cd /opt/pulse-proxmox -$STD npm run build:css echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Pulse"