zenith/installer/zenith-0.5.3.0-binary/zenconfig

30 lines
871 B
Text
Raw Normal View History

#!/bin/bash
echo
echo Zenith Full Node Wallet Config
echo
if [ -d $HOME/Zenith ]; then
echo "Configuration files found, please backup your Zenith folder or"
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 "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!!"
else
echo "Please, install Zenith first!!!"
fi
echo
fi