This commit is contained in:
qiaofeng1227 2023-08-03 08:31:52 +08:00
parent edc8469a16
commit 1052f19810

View file

@ -45,15 +45,20 @@ else
fi fi
release_version=$(curl $urls/version.json | jq .VERSION | tr -d '"') release_version=$(curl $urls/version.json | jq .VERSION | tr -d '"')
if [ "$old_version" \< "$release_version" ]; then echo "start to update websoft9..."
echo "start to update websoft9..." cd /data/apps && rm -rf websoft9
cd /data/apps && rm -rf websoft9 wget $urls/websoft9-latest.zip
wget $urls/websoft9-latest.zip unzip websoft9-latest.zip
unzip websoft9-latest.zip rm -rf websoft9-latest.zip
rm -rf websoft9-latest.zip # if [ "$old_version" \< "$release_version" ]; then
else # echo "start to update websoft9..."
echo "websoft9 is not need to update" # cd /data/apps && rm -rf websoft9
fi # wget $urls/websoft9-latest.zip
# unzip websoft9-latest.zip
# rm -rf websoft9-latest.zip
# else
# echo "websoft9 is not need to update"
# fi
} }