Update uptimekuma-update.sh

add directory check
This commit is contained in:
tteckster 2022-10-28 15:20:49 -04:00 committed by GitHub
parent 4e025f460b
commit e36b17de13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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