From 912c92d6f3046e39bd3095e20f8f37b838f50fd7 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 2 Jun 2025 13:17:20 +0200 Subject: [PATCH] update_install error for pulse --- ct/pulse.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/pulse.sh b/ct/pulse.sh index 9abed3d9d..d45190b36 100644 --- a/ct/pulse.sh +++ b/ct/pulse.sh @@ -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}"