diff --git a/Dockerfile b/Dockerfile index 4fe359f..41f4f34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,6 +78,7 @@ EXPOSE 3000/tcp EXPOSE 9993/udp EXPOSE 3180/tcp +WORKDIR / VOLUME ["/opt/key-networks/ztncui/etc"] VOLUME [ "/var/lib/zerotier-one" ] ENTRYPOINT [ "/usr/bin/supervisord" ] diff --git a/start_zt1.sh b/start_zt1.sh index 7c97761..82fa9f3 100755 --- a/start_zt1.sh +++ b/start_zt1.sh @@ -1,5 +1,7 @@ #!/bin/bash +cd /tmp + # If the file not exists, mean we need to initialize if [ ! -f /var/lib/zerotier-one/identity.secret ] ; then echo "Zerotier-One Configuration is **NOT** initialized." diff --git a/start_ztncui.sh b/start_ztncui.sh index 774f707..4f70526 100755 --- a/start_ztncui.sh +++ b/start_ztncui.sh @@ -1,5 +1,7 @@ #!/bin/bash +cd /opt/key-networks/ztncui + if [ -z $MYADDR ]; then echo "Set Your IP Address to continue." echo "If you don't do that, I will automatically detect."