forked from anonymousbitcoin/anon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautoDeploy.sh
36 lines (36 loc) · 951 Bytes
/
autoDeploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
while [ 1 ]; do
git fetch
status=$(git status)
if [[ $status = *"up-to-date"* ]]; then
echo Anon up-to-date
else
echo ----------------
echo Killing server
echo ----------------
./src/anon-cli -testnet stop
echo ----------------
echo Anon repo is not up to date. Updating anon repo...
echo ----------------
git pull origin live-nodes
echo ----------------
echo Building anon node
echo ----------------
./anonutil/build.sh -j$(nproc)
echo ----------------
echo Fetching Params
echo ----------------
./anonutil/fetch-params.sh
echo ----------------
echo deleting testnet folder
echo ----------------
rm -rf ../.anon/testnet4
echo ----------------
echo Running ANON daemon
echo ----------------
./src/anond -testnet -reindex
echo ----------------
echo PROCESS FINISHED
echo ----------------
fi
sleep 10
done