Created
April 4, 2018 12:05
-
-
Save dizda/c162f9675439df1791e49012fa93606b to your computer and use it in GitHub Desktop.
NANO install specific version's script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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