• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

What is wrong with the MN Update script i am using?

madeyes

Member
Foundation Member
I have been using this a couple of times and it always worked. But not after using this, the dashd won't show on my MN.

Do i have to adjust it somewhere?

Putty screenshot:
http://prntscr.com/6rwb8c


Code:
#!/bin/sh
echo "########### This script will update the Master Node"
sleep 5
VERSION=64
URL="https://www.dashpay.io/binaries/dash-0.11.2.22"
suffix="-linux.tar.gz"
URL="$URL$1$suffix"
FILE=${URL##*/}
DIR=${FILE%.tar.gz}
IP=$(hostname -I)
wget $URL
tar xzvf $FILE
echo "########### Stopping the Master Node"
./dashd stop
sleep 10
rm dashd
cp $DIR/bin/$VERSION/dashd .
chmod 755 dashd
rm $FILE
rm -rf $DIR
rm .dash/peers.dat
echo "########### Restarting the updated Master Node"
sleep 10
./dashd
sleep 10
./dashd getinfo
sleep 10
echo "########### Master Node status - Active: 1, Inactive: 0"
 
I have been using this a couple of times and it always worked. But not after using this, the dashd won't show on my MN.

Do i have to adjust it somewhere?

Putty screenshot:
http://prntscr.com/6rwb8c

Code:
#!/bin/sh
echo "########### This script will update the Master Node"
sleep 5
VERSION=64
URL="https://www.dashpay.io/binaries/dash-0.11.2.22"
suffix="-linux.tar.gz"
URL="$URL$1$suffix"
FILE=${URL##*/}
DIR=${FILE%.tar.gz}
IP=$(hostname -I)
wget $URL
tar xzvf $FILE
echo "########### Stopping the Master Node"
./dashd stop
sleep 10
rm dashd
cp $DIR/bin/$VERSION/dashd .
chmod 755 dashd
rm $FILE
rm -rf $DIR
rm .dash/peers.dat
echo "########### Restarting the updated Master Node"
sleep 10
./dashd
sleep 10
./dashd getinfo
sleep 10
echo "########### Master Node status - Active: 1, Inactive: 0"
Evan accidentically included a extra 'v' in the folder name. So you'll have to patch your script that it uses

dash-v0.11.2.22/bin/64/dashd

instead of

dash-0.11.2.22/bin/64/dashd
 
can't that just be renamed now ?
or has to be in the next release ??
 
Back
Top