|
@@ -17,9 +17,9 @@ cd chain33
|
|
|
sleep 15
|
|
|
set -x
|
|
|
started=`ps aux | grep bityuan -w | grep -v grep | wc -l`
|
|
|
-[ $started == 1 ] || supervisorctl restart chain33
|
|
|
+[ $started = 1 ] || supervisorctl restart chain33
|
|
|
|
|
|
sleep 15
|
|
|
started=`ps aux | grep bityuan -w | grep -v grep | wc -l`
|
|
|
-[ $started == 1 ] && echo "update bityuan success!"
|
|
|
+[ $started = 1 ] && echo "update bityuan success!"
|
|
|
|