mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 17:40:35 +08:00
update
This commit is contained in:
parent
edc8469a16
commit
1052f19810
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user