zenith/installer/zenith-0.6.0.0-amd64/zenconfig
Rene Vergara A. b7f9b2d830 zenithinstall - Merge branch 'milestone2' into zenith-install
docker_files updated to support assets in ~/Zenith/assets folder
		installer updated to support assets in ~/Zenith/assets folder
2024-07-12 17:11:48 -04:00

36 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/
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