router-backend/script/updateCluster.sh

17 lines
414 B
Bash
Raw Normal View History

2021-10-29 09:47:47 +00:00
#!/bin/bash
#update WebContent
rm -r WebContent
rm ClusterWebContent.zip
wget https://public.internetapi.cn/releases/bdcontract/newest/ClusterWebContent.zip
unzip -d WebContent ClusterWebContent.zip
#update bdcluster.jar
rm -r libs
rm bdcluster.jar
wget https://public.internetapi.cn/releases/bdcontract/newest/bdcluster.zip
unzip bdcluster.zip
echo "Automatically Restarting Cluster"
sh ncstart.sh
echo "Done!"