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
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
# 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
}