zenith-install - expert mode changed to run inside a local console
added welcome message when running in expert mode
This commit is contained in:
parent
7b4543ce14
commit
20a052d4c1
6 changed files with 19 additions and 6 deletions
|
@ -31,6 +31,8 @@ RUN chown zenusr:zenusr -R /home/zenusr/Zenith
|
|||
|
||||
COPY scripts/bash_rc_adm /root/.bashrc
|
||||
COPY scripts/bash_rc_usr /home/zenusr/.bashrc
|
||||
COPY scripts/welcome.sh /etc/profile.d/welcome.sh
|
||||
RUN chmod +x /etc/profile.d/welcome.sh
|
||||
COPY bin/zenith /usr/local/bin
|
||||
COPY bin/startzen /usr/local/bin
|
||||
COPY lib/librustzcash_wrapper.so /usr/local/lib
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
if [ x"${EXPERT_MODE}" == "x" ]; then
|
||||
zenith gui
|
||||
else
|
||||
xterm -geometry 90x55 -fs 10 -fa DejaVuSansMono -cr green -bg black -fg lightgray
|
||||
fi
|
||||
# xterm -geometry 90x55 -fs 10 -fa DejaVuSansMono -cr green -bg black -fg lightgray
|
||||
/bin/bash -l
|
||||
fi
|
||||
|
|
8
docker_files/scripts/welcome.sh
Normal file
8
docker_files/scripts/welcome.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
echo
|
||||
echo "============================================="
|
||||
echo "Welcome to Zenith Full Node Wallet enviroment"
|
||||
echo "v0.6.0.0"
|
||||
echo "Expert mode"
|
||||
echo "============================================="
|
||||
echo
|
|
@ -52,12 +52,13 @@ if systemctl is-active --quiet docker; then
|
|||
fi
|
||||
echo "... copying runzenith to $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 "... reloading configuration ...."
|
||||
source $HOME/.bashrc
|
||||
else
|
||||
echo "... PATH=$PATH"
|
||||
fi
|
||||
echo "... PATH=$PATH"
|
||||
echo
|
||||
echo "To start zenith execute 'runzenith' from the command line."
|
||||
else
|
||||
|
|
|
@ -52,12 +52,13 @@ if systemctl is-active --quiet docker; then
|
|||
fi
|
||||
echo "... copying runzenith to $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 "... reloading configuration ...."
|
||||
source $HOME/.bashrc
|
||||
else
|
||||
echo "... PATH=$PATH"
|
||||
fi
|
||||
echo "... PATH=$PATH"
|
||||
echo
|
||||
echo "To start zenith execute 'runzenith' from the command line."
|
||||
else
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue