Browse Source

Update uptimekuma-v5.sh

tweak
tteckster 2 năm trước cách đây
mục cha
commit
8dcfdff457
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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}"