From 1052f1981091092c879541668ab7839f15864461 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 3 Aug 2023 08:31:52 +0800 Subject: [PATCH] update --- install/update.sh | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/install/update.sh b/install/update.sh index 14c9ef6c..cde8b087 100644 --- a/install/update.sh +++ b/install/update.sh @@ -45,15 +45,20 @@ else fi release_version=$(curl $urls/version.json | jq .VERSION | tr -d '"') -if [ "$old_version" \< "$release_version" ]; then - echo "start to update websoft9..." - cd /data/apps && rm -rf websoft9 - wget $urls/websoft9-latest.zip - unzip websoft9-latest.zip - rm -rf websoft9-latest.zip -else - echo "websoft9 is not need to update" -fi +echo "start to update websoft9..." +cd /data/apps && rm -rf websoft9 +wget $urls/websoft9-latest.zip +unzip websoft9-latest.zip +rm -rf websoft9-latest.zip +# if [ "$old_version" \< "$release_version" ]; then +# echo "start to update websoft9..." +# cd /data/apps && rm -rf websoft9 +# wget $urls/websoft9-latest.zip +# unzip websoft9-latest.zip +# rm -rf websoft9-latest.zip +# else +# echo "websoft9 is not need to update" +# fi }