zenith/installer/zenith-0.6.0.0-amd64/zenconfig

37 lines
1.2 KiB
Text
Raw Normal View History

#!/bin/bash
echo
echo "Zenith Full Node Wallet Configuration"
echo "Zenith Version 0.6.0.0"
echo "Configuration Version: 1.0"
echo
if [ -d $HOME/Zenith ]; then
echo "Configuration files found, please backup your Zenith folder and"
echo "remove it before trying to configure Zenith again."
echo
exit
else
if [ -f /usr/local/bin/zenith ] && [ -f /usr/local/bin/librustzcash_wrapper.so ]; then
echo "Creating Zenith folder ...."
mkdir -p $HOME/Zenith
echo "Copying default configuration ...."
cp ./cfg/zenith.cfg $HOME/Zenith/
echo "Creating assets folder ...."
mkdir -p $HOME/Zenith/assets
echo "Transfering assets to new folder ...."
cp ./assets/* $HOME/Zenith/assets
chown -R $USER $HOME/Zenith
echo "Configuring library path ...."
if [ ! grep -q "LD_LIBRARY_PATH" "$HOME/.bashrc" ]; then
echo 'export LD_LIBRARY_PATH=/usr/local/lib' | tee -a $HOME/.bashrc
echo "Loading configuration ...."
source $HOME/.bashrc
else
echo "Library path configured ...."
fi
echo "Zenith is ready!!. Remember to have your Zebra node up and running."
else
echo "Please, install Zenith first!!!"
fi
echo
fi