Skip to content

Commit

Permalink
fix path err
Browse files Browse the repository at this point in the history
  • Loading branch information
kmahyyg committed Jan 21, 2021
1 parent 6b181e8 commit f6e6ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start_ztncui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ mkdir -p /opt/key-networks/ztncui/etc/myfs # for planet files
if [ ! -f /opt/key-networks/ztncui/etc/passwd ]; then
echo "Default Password File Not Exists... Generating..."
cd /opt/key-networks/ztncui/etc
echo $ZTNCUI_PASSWD | /usr/bin/argon2g
echo $ZTNCUI_PASSWD | /usr/local/bin/argon2g
cd ../
fi

if [ ! -f /opt/key-networks/ztncui/etc/tls/fullchain.pem ] || [ ! -f /opt/key-networks/ztncui/etc/tls/privkey.pem ]; then
echo "Cannot detect TLS Certs, Generating..."
cd /opt/key-networks/ztncui/etc/tls
/usr/bin/minica -domains "$MYDOMAIN"
/usr/local/bin/minica -domains "$MYDOMAIN"
cp -f "$MYDOMAIN/cert.pem" fullchain.pem
cp -f "$MYDOMAIN/key.pem" privkey.pem
cd ../../
Expand Down

0 comments on commit f6e6ead

Please sign in to comment.