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

madeyes

Active Member
Foundation Member
Jul 26, 2014
32
12
108
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"
 

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany
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
 

tungfa

Grizzled Member
Foundation Member
Masternode Owner/Operator
Apr 9, 2014
8,898
6,744
1,283
can't that just be renamed now ?
or has to be in the next release ??
 

flare

Grizzled Member
May 18, 2014
2,286
2,404
1,183
Germany