zenith/installer/zenith-0.6.0.0-amd64/zenconfig
Rene Vergara A b675854c49 zenith-install - Docker image generation added to this branch
Scripts to create the installer and the docker image
		 distribution packages included
2024-07-05 20:10:11 -04:00

37 lines
1.2 KiB
Bash
Executable file

#!/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