fix: tsdns init script
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user