#!/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/ chown -R $USER $HOME/Zenith echo "Creating assets folder ...." mkdir -p $HOME/assets echo "Transfering assets to new folder ...." cp ./assets/* $HOME/assets chown -R $USER $HOME/assets 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