Skip to content

Add Alpine Linux #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 53 commits into
base: main
Choose a base branch
from
Open

Add Alpine Linux #86

wants to merge 53 commits into from

Conversation

Meo597
Copy link

@Meo597 Meo597 commented Apr 11, 2025

从 XTLS/alpinelinux-install-xray PR#7 迁移,并保留原始commit log后,做了如下改动:

  • 使其政治中立
  • 适配迁移后路径
  • 修复错误的shebang
  • 检测alpine
  • 检测root
  • 重构arch识别
  • 加入shellcheck并修改相关语法错误
  • 优化输出,隐藏调试信息
  • 增加必要的提示文本
  • rc服务安装失败时退出
  • 降低geoip和geosite权限
  • install_software更名为install_dependencies
  • 为所有curl添加HTTP错误检查,适应天朝网络

PR#7 - 依照OpenRC官方文档重写整个/etc/init.d/xray,使能:

  • 看门狗,崩溃后间隔5秒无限次重启,除非10分钟内崩溃3次
  • cap特权,使能支持tproxysockopt且无需root,允许监听低端口
  • 放宽资源限制
  • 智能启动ntpdchronyd等声明为ntp-client的服务,防止ss等协议强依赖时间,但不准的尴尬情况。即便失败也可启动xray
  • 尽可能先启动系统的dns client服务。即便失败也可启动xray
  • iptablesnftables等声明为防火墙的服务之后启动。若服务存在必须启动成功
  • 规范化的配置文件检查。若失败不会无限重启
  • 鉴于资源路径的重大更改,防止下游脚本死掉,在README声明,顺便格式化了一下MD

对此repo:

  • 翻译README
  • 连接到alpine

Meo597 added 5 commits April 12, 2025 01:41
- Add necessary user prompts for better feedback
- Exit on failure of rc service installation
- Reduce permissions for geoip and geosite files
- Rename install_software to install_dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants