Merge pull request #392 from PassiveLemon/zoraxy-volume

Symlink ZeroTier var to Zoraxy config
This commit is contained in:
Toby Chui 2024-11-13 18:42:35 +08:00 committed by GitHub
commit 74017baecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,7 @@ ENV WEBROOT="./www"
ENV ZTAUTH=""
ENV ZTPORT="9993"
VOLUME [ "/opt/zoraxy/config/", "/var/lib/zerotier-one/" ]
VOLUME [ "/opt/zoraxy/config/" ]
ENTRYPOINT [ "/opt/zoraxy/entrypoint.sh" ]

View File

@ -4,6 +4,10 @@ update-ca-certificates
echo "CA certificates updated"
if [ "$ZEROTIER" = "true" ]; then
if [ ! -d "/opt/zoraxy/config/zerotier/" ]; then
mkdir -p /opt/zoraxy/config/zerotier/
fi
ln -s /opt/zoraxy/config/zerotier/ /var/lib/zerotier-one
zerotier-one -d
echo "ZeroTier daemon started"
fi