update_install error for pulse

This commit is contained in:
CanbiZ 2025-06-02 13:17:20 +02:00 committed by GitHub
parent a4904fdd7e
commit 912c92d6f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,14 +23,14 @@ function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/pulse ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if [[ -d /opt/pulse-monitor ]]; then
msg_error "An old installation was detected. Please recreate the LXC from scratch (https://github.com/community-scripts/ProxmoxVE/pull/4848)"
exit 1
fi
if [[ ! -d /opt/pulse ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/rcourtman/Pulse/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
msg_info "Stopping ${APP}"