zenith-install - Modify .gitignore
remove .tar and .7z files from git. Those files can be created when needed.
This commit is contained in:
parent
046d0f493a
commit
0724b79b8d
2 changed files with 6 additions and 4 deletions
Binary file not shown.
|
@ -1,4 +1,4 @@
|
||||||
#/bin/bash
|
#!/bin/bash
|
||||||
ZVERSION="0.6.0.0"
|
ZVERSION="0.6.0.0"
|
||||||
echo
|
echo
|
||||||
echo "Zenith Full Node Docker Image Setup"
|
echo "Zenith Full Node Docker Image Setup"
|
||||||
|
@ -27,8 +27,10 @@ if systemctl is-active --quiet docker; then
|
||||||
docker load < zenith-docker_$ZVERSION.tar
|
docker load < zenith-docker_$ZVERSION.tar
|
||||||
echo "... docker image zenith-docker:"$ZVERSION" loaded."
|
echo "... docker image zenith-docker:"$ZVERSION" loaded."
|
||||||
echo "... creating Zenith folder"
|
echo "... creating Zenith folder"
|
||||||
mkdir $HOME/Zenith
|
mkdir -p $HOME/Zenith/assets
|
||||||
|
echo "... creating default configuration"
|
||||||
cp cfg/zenith.cfg $HOME/Zenith/
|
cp cfg/zenith.cfg $HOME/Zenith/
|
||||||
|
cp -r /assets/ $HOME/Zenith/assets
|
||||||
if ! [ -d $HOME/.local/bin ]; then
|
if ! [ -d $HOME/.local/bin ]; then
|
||||||
echo "... creating $HOME/.local/bin folder"
|
echo "... creating $HOME/.local/bin folder"
|
||||||
mkdir -p $HOME/.local/bin
|
mkdir -p $HOME/.local/bin
|
||||||
|
@ -38,10 +40,10 @@ if systemctl is-active --quiet docker; then
|
||||||
if [ -f $HOME/.local/bin/runzenith ]; then
|
if [ -f $HOME/.local/bin/runzenith ]; then
|
||||||
rm $HOME/.local/bin/runzenith
|
rm $HOME/.local/bin/runzenith
|
||||||
fi
|
fi
|
||||||
echo "... copying runzenith to $HOME/.local/bin "
|
echo "... copying runzenith to $HOME/.local/bin"
|
||||||
cp cfg/runzenith $HOME/.local/bin/
|
cp cfg/runzenith $HOME/.local/bin/
|
||||||
if echo $PATH | grep -q $HOME/.local/bin ; then
|
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 ...."
|
echo "Reloading configuration ...."
|
||||||
source $HOME/.bashrc
|
source $HOME/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue