From e36b17de130d07bcd5003fbc29b85bf17b6a7e58 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 28 Oct 2022 15:20:49 -0400 Subject: [PATCH] Update uptimekuma-update.sh add directory check --- misc/uptimekuma-update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/uptimekuma-update.sh b/misc/uptimekuma-update.sh index bee3f2de..acccf4b2 100644 --- a/misc/uptimekuma-update.sh +++ b/misc/uptimekuma-update.sh @@ -45,6 +45,7 @@ function msg_ok() { echo -e "${BFR} ${CM} ${GN}${msg}${CL}" } +if [ ! -d "/opt/uptime-kuma" ]; then echo -e "No Uptime Kuma Directory Found."; exit; fi msg_info "Stopping ${APP}" sudo systemctl stop uptime-kuma &>/dev/null