Skip to content

Commit

Permalink
Update masternode installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromgk committed Apr 23, 2018
1 parent 38662a0 commit da7175d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions pac-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -e
cd ~/

arch=`uname -m`
version="0.12.3.0"
old_version="0.12.2.3"
version="0.12.3.1"
old_version="0.12.3.0"
base_url="https://github.com/PACCommunity/PAC/releases/download/v${version}"
if [ "${arch}" == "x86_64" ]; then
tarball_name="PAC-v${version}-linux-x86_64.tar.gz"
Expand Down Expand Up @@ -89,14 +89,14 @@ if [ -e ~/paccoin-cli ] && [ -e ~/paccoind ]; then
rm paccoin-qt
fi

if [ -e ~/PAC-v0.12.2.3-ubuntu-16.04-x64.tar.gz ]; then
echo "Removing PAC-v0.12.2.3-ubuntu-16.04-x64.tar.gz"
rm PAC-v0.12.2.3-ubuntu-16.04-x64.tar.gz
if [ -e ~/PAC-v0.12.3.0-linux-x86_64.tar.gz ]; then
echo "Removing PAC-v0.12.3.0-linux-x86_64.tar.gz"
rm PAC-v0.12.3.0-linux-x86_64.tar.gz
fi

if [ -d ~/PAC-v0.12.2.3-ubuntu-16.04-x64 ]; then
echo "Removing PAC-v0.12.2.3-ubuntu-16.04-x64 directory"
rm -r PAC-v0.12.2.3-ubuntu-16.04-x64
if [ -d ~/PAC-v0.12.3.0-linux-x86_64 ]; then
echo "Removing PAC-v0.12.23.0-linux-x86_64 directory"
rm -r PAC-v0.12.3.0-linux-x86_64
fi
else
is_pac_running=`ps ax | grep -v grep | grep paccoind | wc -l`
Expand Down
4 changes: 2 additions & 2 deletions pacmn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ else
fi

arch=`uname -m`
version="0.12.3.0"
old_version="0.12.2.3"
version="0.12.3.1"
old_version="0.12.3.0"
base_url="https://github.com/PACCommunity/PAC/releases/download/v${version}"
if [ "${arch}" == "x86_64" ]; then
tarball_name="PAC-v${version}-linux-x86_64.tar.gz"
Expand Down

0 comments on commit da7175d

Please sign in to comment.