diff --git a/bin/build.sh b/bin/build.sh index 1739962..5733011 100644 --- a/bin/build.sh +++ b/bin/build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash echo "You're about to install ethereum. Please choose one of the following:" echo "1. eth" diff --git a/bin/update.sh b/bin/update.sh new file mode 100644 index 0000000..c44ff33 --- /dev/null +++ b/bin/update.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +if [[ -f /usr/bin/geth ]]; +then + ethtype="geth" +else + ethtype="eth" +fi + +pm2 kill +sudo apt-get remove $eth -y + +sudo apt-get clean +sudo add-apt-repository -y ppa:ethereum/ethereum +sudo add-apt-repository -y ppa:ethereum/ethereum-dev +sudo apt-get update -y +sudo apt-get upgrade -y + +sudo apt-get install $eth + +cd ~/bin/www +git pull +sudo npm update +cd .. +pm2 start processes.json