diff --git a/docker_files/Dockerfile b/docker_files/Dockerfile index 606d117..8f4b43f 100644 --- a/docker_files/Dockerfile +++ b/docker_files/Dockerfile @@ -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 diff --git a/docker_files/bin/startzen b/docker_files/bin/startzen index 24ab52f..54e35dd 100755 --- a/docker_files/bin/startzen +++ b/docker_files/bin/startzen @@ -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 \ No newline at end of file +# xterm -geometry 90x55 -fs 10 -fa DejaVuSansMono -cr green -bg black -fg lightgray + /bin/bash -l +fi diff --git a/docker_files/scripts/welcome.sh b/docker_files/scripts/welcome.sh new file mode 100644 index 0000000..9e8a3d1 --- /dev/null +++ b/docker_files/scripts/welcome.sh @@ -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 diff --git a/docker_files/setup_docker b/docker_files/setup_docker index 2a9d15b..3f5db47 100644 --- a/docker_files/setup_docker +++ b/docker_files/setup_docker @@ -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 diff --git a/docker_files/zenith-docker_0.6.0.0/setup_docker b/docker_files/zenith-docker_0.6.0.0/setup_docker index 2a9d15b..3f5db47 100755 --- a/docker_files/zenith-docker_0.6.0.0/setup_docker +++ b/docker_files/zenith-docker_0.6.0.0/setup_docker @@ -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 diff --git a/docker_files/zenith-docker_0.6.0.0/zenith-docker_0.6.0.0.tar b/docker_files/zenith-docker_0.6.0.0/zenith-docker_0.6.0.0.tar index 48346c3..94e2b51 100644 Binary files a/docker_files/zenith-docker_0.6.0.0/zenith-docker_0.6.0.0.tar and b/docker_files/zenith-docker_0.6.0.0/zenith-docker_0.6.0.0.tar differ