fix: convert shell scripts to LF line endings for Linux

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-16 08:25:49 +08:00
parent cd0639d55c
commit 7089fa5777
7 changed files with 306 additions and 298 deletions
+7
View File
@@ -0,0 +1,7 @@
# Shell scripts must use LF on Linux
*.sh text eol=lf
.env text eol=lf
.env.example text eol=lf
# Default: normalize text files
* text=auto
+1
View File
@@ -144,6 +144,7 @@ systemctl restart sing-box
| 问题 | 处理 |
|------|------|
| `set: pipefail: invalid option` | Windows 换行符问题,执行:`sed -i 's/\r$//' scripts/*.sh .env` 后重试 |
| `dig` 未返回正确 IP | 等待 DNS 生效或检查解析记录 |
| acme 证书失败 | 确认 80 端口可访问:`curl -I http://66.hyf2.cc` |
| sing-box 启动失败 | `journalctl -u sing-box -n 50` 查看报错 |