Forráskód Böngészése

Update uptimekuma-update.sh

add directory check
tteckster 2 éve
szülő
commit
e36b17de13
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      misc/uptimekuma-update.sh

+ 1 - 0
misc/uptimekuma-update.sh

@@ -45,6 +45,7 @@ function msg_ok() {
     echo -e "${BFR} ${CM} ${GN}${msg}${CL}"
     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}"
 msg_info "Stopping ${APP}"
 sudo systemctl stop uptime-kuma &>/dev/null
 sudo systemctl stop uptime-kuma &>/dev/null