From d3cdb50c63eb2fb322e4fb298cb202444c19d299 Mon Sep 17 00:00:00 2001 From: swb Date: Fri, 22 Jul 2016 18:25:21 +0800 Subject: [PATCH] Create setupPbft.sh --- hyperledger/setupPbft.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hyperledger/setupPbft.sh diff --git a/hyperledger/setupPbft.sh b/hyperledger/setupPbft.sh new file mode 100644 index 00000000..2ed59469 --- /dev/null +++ b/hyperledger/setupPbft.sh @@ -0,0 +1,15 @@ +#! /bin/bash + + +if [ xroot != x$(whoami) ] +then + echo "You must run as root (Hint: sudo su)" + exit +fi + +apt-get update +apt-get install git curl -y + +wget -qO- https://get.docker.com/ | sh +sudo service docker stop +sudo docker daemon --api-cors-header="*" -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock