Skip to content

Instantly share code, notes, and snippets.

@dizda
Created April 4, 2018 12:05
Show Gist options
  • Save dizda/c162f9675439df1791e49012fa93606b to your computer and use it in GitHub Desktop.
Save dizda/c162f9675439df1791e49012fa93606b to your computer and use it in GitHub Desktop.
NANO install specific version's script
#!/usr/bin/env bash
set -o errexit
set -o xtrace
VERSION=$1
rm -rf rai_build_$VERSION/
echo "Installing $VERSION..."
git clone --recursive https://github.com/nanocurrency/raiblocks.git rai_build_$VERSION
cd rai_build_$VERSION
cd ci/
./bootstrap_boost.sh
cd ../
# Make sure that /usr/local/boost is created and writable.
cmake -DBOOST_ROOT=/usr/local/boost -G "Unix Makefiles"
make rai_node
sudo -uiar ./rai_node --diagnostics
sudo cp rai_node /home/iar/rai_node_$VERSION
cd /home/iar/
sudo chown iar:iar rai_node_$VERSION
echo "Try /home/iar/rai_node_$VERSION"
echo "Please execute that command: sudo service rai_node stop && sudo systemctl daemon-reload && sudo service rai_node start"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment