router-backend/script/updateCluster.sh
2021-10-29 17:47:47 +08:00

17 lines
414 B
Bash

#!/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!"