chore: add scripts and set tools

This commit is contained in:
Frank.R.Wu
2021-10-29 17:47:47 +08:00
parent 312b3336bb
commit 38970a3fca
5 changed files with 72 additions and 2 deletions

16
script/updateCluster.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/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!"