fix: convert shell scripts to LF line endings for Linux
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||||
@@ -144,6 +144,7 @@ systemctl restart sing-box
|
|||||||
|
|
||||||
| 问题 | 处理 |
|
| 问题 | 处理 |
|
||||||
|------|------|
|
|------|------|
|
||||||
|
| `set: pipefail: invalid option` | Windows 换行符问题,执行:`sed -i 's/\r$//' scripts/*.sh .env` 后重试 |
|
||||||
| `dig` 未返回正确 IP | 等待 DNS 生效或检查解析记录 |
|
| `dig` 未返回正确 IP | 等待 DNS 生效或检查解析记录 |
|
||||||
| acme 证书失败 | 确认 80 端口可访问:`curl -I http://66.hyf2.cc` |
|
| acme 证书失败 | 确认 80 端口可访问:`curl -I http://66.hyf2.cc` |
|
||||||
| sing-box 启动失败 | `journalctl -u sing-box -n 50` 查看报错 |
|
| sing-box 启动失败 | `journalctl -u sing-box -n 50` 查看报错 |
|
||||||
|
|||||||
Reference in New Issue
Block a user