Skip to content

Commit d0de121

Browse files
committed
Update update.sh
1 parent 957e2db commit d0de121

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/nezha/update.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ echo "最新[NUMBER]是: $NUMBER_LATEST_VERSION"
2121
INSTALL_VERSION=`/www/server/nezha/dashboard/app -v`
2222
echo "安装的版本: $INSTALL_VERSION"
2323

24+
if [ -d /www/server/nezha ];then
25+
echo "$INSTALL_VERSION" > /www/server/nezha/version.pl
26+
fi
27+
2428
if [ "$INSTALL_VERSION" == "$NUMBER_LATEST_VERSION" ];then
2529
echo "已经是最新!!!"
2630
exit

0 commit comments

Comments
 (0)