@@ -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" ]
@@ -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."
+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."