mirror of
https://github.com/fscarmen/sing-box.git
synced 2026-08-10 17:55:16 +08:00
fix: correct sing-box template download URL in Docker flow
fix: 修复 Docker 下载 sing-box 模板地址错误
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# 脚本更新日期 2026.02.08
|
# 脚本更新日期 2026.04.23
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
WORK_DIR=/sing-box
|
WORK_DIR=/sing-box
|
||||||
@@ -1275,7 +1275,7 @@ anytls://${UUID}@${SERVER_IP_1}:${PORT_ANYTLS}?security=tls&sni=addons.mozilla.o
|
|||||||
local NODE_REPLACE+="\"${NODE_NAME} anytls\","
|
local NODE_REPLACE+="\"${NODE_NAME} anytls\","
|
||||||
|
|
||||||
# 模板
|
# 模板
|
||||||
local SING_BOX_JSON=$(wget -qO- --tries=3 --timeout=2 ${SUBSCRIBE_TEMPLATE}/sing-box1)
|
local SING_BOX_JSON=$(wget -qO- --tries=3 --timeout=2 ${SUBSCRIBE_TEMPLATE}/sing-box)
|
||||||
|
|
||||||
echo $SING_BOX_JSON | sed "s#\"<OUTBOUND_REPLACE>\",#$OUTBOUND_REPLACE#; s#\"<NODE_REPLACE>\"#${NODE_REPLACE%,}#g" | ${WORK_DIR}/jq > ${WORK_DIR}/subscribe/sing-box
|
echo $SING_BOX_JSON | sed "s#\"<OUTBOUND_REPLACE>\",#$OUTBOUND_REPLACE#; s#\"<NODE_REPLACE>\"#${NODE_REPLACE%,}#g" | ${WORK_DIR}/jq > ${WORK_DIR}/subscribe/sing-box
|
||||||
|
|
||||||
@@ -1442,4 +1442,4 @@ case "$ACTION" in
|
|||||||
install
|
install
|
||||||
# 用 s6-overlay 作为 PID 1 承载守护
|
# 用 s6-overlay 作为 PID 1 承载守护
|
||||||
exec /init
|
exec /init
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user