zenith-install - Modify .gitignore

remove .tar and .7z files from git. Those files can be
		 created when needed.
This commit is contained in:
Rene V. Vergara A. 2024-07-15 21:11:26 -04:00
parent 046d0f493a
commit 0724b79b8d
2 changed files with 6 additions and 4 deletions

Binary file not shown.

View file

@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
ZVERSION="0.6.0.0"
echo
echo "Zenith Full Node Docker Image Setup"
@ -27,8 +27,10 @@ if systemctl is-active --quiet docker; then
docker load < zenith-docker_$ZVERSION.tar
echo "... docker image zenith-docker:"$ZVERSION" loaded."
echo "... creating Zenith folder"
mkdir $HOME/Zenith
mkdir -p $HOME/Zenith/assets
echo "... creating default configuration"
cp cfg/zenith.cfg $HOME/Zenith/
cp -r /assets/ $HOME/Zenith/assets
if ! [ -d $HOME/.local/bin ]; then
echo "... creating $HOME/.local/bin folder"
mkdir -p $HOME/.local/bin
@ -38,10 +40,10 @@ if systemctl is-active --quiet docker; then
if [ -f $HOME/.local/bin/runzenith ]; then
rm $HOME/.local/bin/runzenith
fi
echo "... copying runzenith to $HOME/.local/bin "
echo "... copying runzenith to $HOME/.local/bin"
cp cfg/runzenith $HOME/.local/bin/
if echo $PATH | grep -q $HOME/.local/bin ; then
echo PATH=$PATH:$HOME/.local/bin' | tee -a $HOME/.bashrc
echo PATH=$PATH:$HOME/.local/bin | tee -a $HOME/.bashrc
echo "Reloading configuration ...."
source $HOME/.bashrc
fi