fix: tsdns startup creates multiple container

This commit is contained in:
iceBear67
2026-07-06 14:31:07 +08:00
parent 18a68ee6fd
commit 06ad25f8e7
2 changed files with 8 additions and 0 deletions

View File

@@ -4,5 +4,9 @@ depend() {
need docker net need docker net
} }
supervisor="supervise-daemon"
restart_max=0
restart_delay=10
command="/usr/bin/tsdns" command="/usr/bin/tsdns"
pidfile="/run/${RC_SVCNAME}.pid" pidfile="/run/${RC_SVCNAME}.pid"

View File

@@ -11,6 +11,10 @@ fi
HOSTNAME=$(cat /etc/hostname) HOSTNAME=$(cat /etc/hostname)
if docker container inspect "tsdns" ; then
exit 0
fi
docker run -e "TS_AUTHKEY=_TS_AUTHKEY_" \ docker run -e "TS_AUTHKEY=_TS_AUTHKEY_" \
-e "HOMELAB_TLD=_HOMELAB_TLD_" \ -e "HOMELAB_TLD=_HOMELAB_TLD_" \
-e "HOMELAB_ZONE=_HOMELAB_ZONE_" \ -e "HOMELAB_ZONE=_HOMELAB_ZONE_" \