chaos
|
d9eccdfd81
|
修复容器环境三个关键bug:systemd误判、变量名冲突、启动验证
- has_systemd(): 改为检查 /proc/1/comm 是否为 systemd,避免容器中 systemctl --version 误判
- read_or_default(): 简化为两参数,去掉变量名间接引用避免冲突
- 新增 confirm_or_default(): 处理 y/n 确认,管道模式默认 true
- safe_start_service(): systemd 启动失败自动回退到 nohup
- safe_start_service(): 启动后 sleep 1 并验证进程存活,失败输出日志路径
- get_service_status(): unknown -> inactive(更准确的措辞)
- 端口变量支持环境变量覆盖: GATEWAY_PORT/REMOTE_PORT
|
2026-07-02 14:54:00 +08:00 |
|
chaos
|
a6fbf3c175
|
修复管道执行模式:支持 curl | bash 非交互式部署
- 新增 is_piped() 检测 stdin 是否为 tty
- 新增 read_or_default() 函数,管道模式下自动使用环境变量或默认值
- 所有 read -p 交互式输入替换为 read_or_default
- 支持环境变量覆盖: GATEWAY_PORT/REMOTE_PORT/APPEND_FRP/USE_VENV/INSTALL_FRP
- 修复 curl | bash 执行时 read 导致端口验证失败的 bug
|
2026-07-02 14:45:47 +08:00 |
|
chaos
|
f480f251fb
|
优化华为云网关脚本:支持容器环境、生产级WSGI、智能内存扫描
- 新增 systemd 检测,容器环境自动使用 nohup 模式
- 优先使用 waitress/gunicorn 生产服务器
- 智能进程优先级扫描 + 分段内存读取
- 多镜像源下载回退机制
- 增加健康检查端点 /health
- 配置自动备份 + 端口有效性验证
- 虚拟环境支持避免 root pip 警告
|
2026-07-02 14:38:27 +08:00 |
|
chaos
|
9be2cbd58e
|
initial commit
|
2026-07-02 14:28:25 +08:00 |
|