mirror of
https://gitee.com/BDWare/router-backend
synced 2026-02-14 15:39:26 +00:00
chore: add scripts and set tools
This commit is contained in:
16
script/updateCluster.sh
Normal file
16
script/updateCluster.sh
Normal 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!"
|
||||
Reference in New Issue
Block a user