Skip to content

Commit

Permalink
Update Bws_Setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chahmedbilal committed Aug 9, 2018
1 parent 82cf298 commit bfcdb88
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions Bws_Setup.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#/bin/bash
cd ~
echo "****************************************************************************"
echo "* This script will install and configure your BWS Coin masternodes. *"
echo "* This script will install and configure your XUEZ Coin masternodes. *"
echo "* Love from A_Block_Nut(Thermo) ;) *"
echo "* If you have any issues please ask for help on the BWS discord. *"
echo "* https://discord.gg/3Z7DUEC *"
echo "* https://bitcoinwspectrum.com/ *"
echo "* If you have any issues please ask for help on the XUEZ discord. *"
echo "* https://discord.gg/QWcK5Yk *"
echo "* https://xuezcoin.com/ *"
echo "****************************************************************************"
echo ""
echo ""
Expand Down Expand Up @@ -35,8 +35,8 @@ read DOSETUP
fi

echo ""
wget https://github.com/bitcoinwspectrum/bitcoinwspectrum/releases/download/Release/tar-bws-linux-cli
tar -xvzf tar-bws-linux-cli
wget https://github.com/XUEZ/xuez/releases/download/1.0.1.8/xuez-linux-cli-1018.tgz
tar -xvzf xuez-linux-cli-1018.tgz
echo ""
echo "Configure your masternodes now!"
echo "Your recognised IP address is:"
Expand All @@ -48,8 +48,8 @@ read IPDEFAULT
echo "We are using your default IP address"
echo "Enter masternode private key for node, followed by [ENTER]: $ALIAS"
read PRIVKEY
CONF_DIR=~/.bws\/
CONF_FILE=bws.conf
CONF_DIR=~/.xuez\/
CONF_FILE=xuez.conf
PORT=41798
IP=$(hostname -I)
mkdir -p $CONF_DIR
Expand All @@ -67,8 +67,8 @@ read IPDEFAULT
echo "port=$PORT" >> $CONF_DIR/$CONF_FILE
echo "masternodeaddr=$IP:$PORT" >> $CONF_DIR/$CONF_FILE
echo "masternodeprivkey=$PRIVKEY" >> $CONF_DIR/$CONF_FILE
./bwsd -daemon
echo "if server start failure try ./bwsd -reindex"
./xuezd -daemon
echo "if server start failure try ./xuezd -reindex"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "! !"
echo "! Your MasterNode Is setup please close terminal !"
Expand All @@ -81,8 +81,8 @@ else
echo ""
echo "Enter masternode private key for node, followed by [ENTER]: $ALIAS"
read PRIVKEY
CONF_DIR=~/.bws\/
CONF_FILE=bws.conf
CONF_DIR=~/.xuez\/
CONF_FILE=xuez.conf
PORT=41798
mkdir -p $CONF_DIR
echo "rpcuser=user"`shuf -i 100000-10000000 -n 1` >> $CONF_DIR/$CONF_FILE
Expand All @@ -99,12 +99,13 @@ else
echo "port=$PORT" >> $CONF_DIR/$CONF_FILE
echo "masternodeaddr=$DIP:$PORT" >> $CONF_DIR/$CONF_FILE
echo "masternodeprivkey=$PRIVKEY" >> $CONF_DIR/$CONF_FILE
./bwsd -daemon
echo "if server start failure try ./bwsd -reindex"
./xuezd -daemon
echo "if server start failure try ./xuezd -reindex"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "! !"
echo "! Your MasterNode Is setup please close terminal !"
echo "! and continue the local wallet setup guide !"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo ""
fi

0 comments on commit bfcdb88

Please sign in to comment.