mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
Update update.sh
This commit is contained in:
@@ -3,10 +3,12 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
||||
export PATH
|
||||
|
||||
# cd /www/server/mdserver-web && bash plugins/nezha/update.sh
|
||||
|
||||
curPath=`pwd`
|
||||
serverPath=$(dirname "$curPath")
|
||||
echo $curPath
|
||||
|
||||
nezhaDir=${serverPath}/source/nezha
|
||||
|
||||
REPO="nezhahq/nezha"
|
||||
LATEST_VERSION=$(curl -sL "https://api.github.com/repos/$REPO/releases/latest" | jq -r '.tag_name')
|
||||
echo "最新版本是: $LATEST_VERSION"
|
||||
|
||||
Reference in New Issue
Block a user