소스 검색

Update uptimekuma-v5.sh

tweak
tteckster 2 년 전
부모
커밋
8dcfdff457
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ct/uptimekuma-v5.sh

+ 1 - 0
ct/uptimekuma-v5.sh

@@ -311,6 +311,7 @@ function install_script() {
 function update_script() {
 clear
 header_info
+LATEST=$(curl -sL https://api.github.com/repos/louislam/uptime-kuma/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
 msg_info "Stopping ${APP}"
 sudo systemctl stop uptime-kuma &>/dev/null
 msg_ok "Stopped ${APP}"