Skip to content

Commit

Permalink
fix init startupdir err
Browse files Browse the repository at this point in the history
  • Loading branch information
kmahyyg committed Jan 21, 2021
1 parent 62512d3 commit 15fddc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 2 additions & 0 deletions start_zt1.sh
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
2 changes: 2 additions & 0 deletions start_ztncui.sh
Original file line number Diff line number Diff line change
@@ -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."
Expand Down

0 comments on commit 15fddc5

Please sign in to comment.