fix: tsdns init script

This commit is contained in:
iceBear67
2026-07-05 19:01:00 +08:00
parent 10d377fb26
commit ea638786d6
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#!/sbin/openrc-run #!/sbin/openrc-run
depend() { depend() {
need auth-server docker need auth-server docker tsdns
} }
command="/usr/bin/bubble" command="/usr/bin/bubble"

View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
if [ ! docker network insepct "workspace" ]; then if ! docker network inspect "workspace" ; then
docker network create \ docker network create \
--attachable \ --attachable \
--ipv4 \ --ipv4 \
@@ -17,7 +17,7 @@ docker run -e "TS_AUTHKEY=_TS_AUTHKEY_" \
-e "ADVERTISE_ROUTE=_ADVERTISE_ROUTE_" \ -e "ADVERTISE_ROUTE=_ADVERTISE_ROUTE_" \
-e "TS_DEBUG_OMIT_LOCAL_ADDRS=true" \ -e "TS_DEBUG_OMIT_LOCAL_ADDRS=true" \
--network "workspace" \ --network "workspace" \
-p 41641:41641/udp -p 41641:41641/udp \
-v "/data/tsdns:/tstate" -v "/data/tsdns:/tstate" \
--restart unless-stopped --restart unless-stopped \
ghcr.io/saltedfishclub/tsdns:latest ghcr.io/saltedfishclub/tsdns:latest