Procházet zdrojové kódy

fix init startupdir err

kmahyyg před 4 roky
rodič
revize
15fddc5018
3 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 1 0
      Dockerfile
  2. 2 0
      start_zt1.sh
  3. 2 0
      start_ztncui.sh

+ 1 - 0
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" ]

+ 2 - 0
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."

+ 2 - 0
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."