Compare commits

..

1 Commits

Author SHA1 Message Date
dichgrem
edb8d0ff85 fix:singbox_set 2026-01-17 11:18:12 +08:00

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# install_singbox.sh
# 版本号
SCRIPT_VERSION="1.12.15"
SCRIPT_VERSION="1.12.17"
set -euo pipefail
# 颜色定义
@@ -444,10 +444,10 @@ update_singbox() {
NEW_VER=$($BIN_NAME version 2>/dev/null | head -n1 | awk '{print $NF}')
echo "✅ Sing-box 已升级到版本:$NEW_VER"
echo "🔁 正在重启服务..."
echo "🔁 正在重载 systemd 并重启服务..."
systemctl daemon-reload
if systemctl restart sing-box.service; then
systemctl daemon-reload
echo "✅ 服务已重启。"
else
echo "⚠️ 服务重启失败,请手动检查。"