Skip to content

Commit 912c92d

Browse files
authored
update_install error for pulse
1 parent a4904fd commit 912c92d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ct/pulse.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ function update_script() {
2323
header_info
2424
check_container_storage
2525
check_container_resources
26-
if [[ ! -d /opt/pulse ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
29-
fi
3026
if [[ -d /opt/pulse-monitor ]]; then
3127
msg_error "An old installation was detected. Please recreate the LXC from scratch (https://github.com/community-scripts/ProxmoxVE/pull/4848)"
3228
exit 1
3329
fi
30+
if [[ ! -d /opt/pulse ]]; then
31+
msg_error "No ${APP} Installation Found!"
32+
exit
33+
fi
3434
RELEASE=$(curl -fsSL https://api.github.com/repos/rcourtman/Pulse/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3535
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
3636
msg_info "Stopping ${APP}"

0 commit comments

Comments
 (0)