2024-07-02 02:01:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
echo
|
2024-07-04 16:00:50 +00:00
|
|
|
echo "Zenith Full Node Wallet Configuration"
|
|
|
|
echo "Zenith Version 0.6.0.0"
|
|
|
|
echo "Configuration Version: 1.0"
|
2024-07-02 02:01:18 +00:00
|
|
|
echo
|
|
|
|
if [ -d $HOME/Zenith ]; then
|
2024-07-04 16:00:50 +00:00
|
|
|
echo "Configuration files found, please backup your Zenith folder and"
|
2024-07-02 02:01:18 +00:00
|
|
|
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/
|
2024-07-04 16:00:50 +00:00
|
|
|
echo "Creating assets folder ...."
|
2024-07-12 21:11:48 +00:00
|
|
|
mkdir -p $HOME/Zenith/assets
|
2024-07-04 16:00:50 +00:00
|
|
|
echo "Transfering assets to new folder ...."
|
2024-07-12 21:11:48 +00:00
|
|
|
cp ./assets/* $HOME/Zenith/assets
|
|
|
|
chown -R $USER $HOME/Zenith
|
2024-07-02 02:01:18 +00:00
|
|
|
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
|
2024-07-06 00:10:11 +00:00
|
|
|
echo "Zenith is ready!!. Remember to have your Zebra node up and running."
|
2024-07-02 02:01:18 +00:00
|
|
|
else
|
|
|
|
echo "Please, install Zenith first!!!"
|
|
|
|
fi
|
|
|
|
echo
|
|
|
|
fi
|