Skip to content
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

适配 OpenWrt 环境的 1Panel 安装包优化 #32

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

Conversation

gcsong023
Copy link

本次提交的拉取请求聚焦于 1Panel 在 OpenWrt 环境下的安装包优化与功能扩展。主要包含以下核心改进内容:
-安装脚本优化:对install.sh和quick_start.sh进行了深度重构。一方面,改进了密码输入方法,确保在不同 OpenWrt 环境下都能稳定且安全地获取用户输入;另一方面,增强了对无stty环境的支持,显著提升了脚本的兼容性,让更多类型的 OpenWrt 设备能够顺利执行安装流程。同时,更新后的脚本支持根据环境自动设定默认安装包版本,极大地简化了用户的安装操作,降低了安装门槛。
-适配不同环境:在1pctl脚本中统一了序号格式,提升了脚本在通用 Linux 系统和busybox环境下的可读性与可维护性,使安装和使用过程更加顺畅。此外,修改install.sh脚本,使其支持 ImmortalWrt 固件在线安装docker与docker-compose,为用户在该特定固件环境下部署 1Panel 提供了更便捷的途径,虽然其他固件尚未全面测试,但这一改进为后续的适配工作奠定了良好基础。
-修复与补充说明:针对可能出现的安装问题,如curl、bash命令缺失,/etc/localtime不存在以及端口冲突等,在文档中详细补充了对应的解决办法,方便用户在遇到问题时能够快速自行解决。同时,明确指出了在 OpenWrt 环境下 1Panel 暂时无法正常使用的功能,如快照、备份以及部分管理功能,并说明快照和备份功能已通过修改源代码修复,引导用户前往releases页面获取详细信息 ,提升了用户对产品功能的预期管理。
希望这些改进能为 1Panel 在 OpenWrt 环境下的推广和使用带来积极影响,期待您的审核与合并。

gcsong023 and others added 26 commits May 25, 2024 21:35
openwrt中创建/usr/local/bin 文件夹
fix: 修改替换1pctl 中明文保存密码的逻辑
根据最新的服务脚本更改,1panel服务名称已更改为1paneld。此更新包括在1pctl脚本中
更新所有相关服务调用,确保与新的服务名称保持一致。这影响了status、start、stop、
restart和uninstall函数以及restore函数中的服务重载命令。
- 改进 status、start、stop 和 restart 函数的错误处理
- 在服务操作失败时使用 systemctl 进行备选操作
- 确保在所有情况下都能正确反馈操作结果
- 同步1panel-dev/installer 仓库
- 重构安装脚本,优化用户交互和错误处理
- 添加多语言支持,允许用户选择安装语言
- 改进 Docker 安装过程,增加加速源配置
- 优化防火墙配置和端口检测逻辑
- 更新 README 文件,使其支持多语言
- 调整 1pctl 脚本,增加语言支持和错误处理
- 更新服务文件,确保网络在线时启动
- 将硬编码的中文文案替换为国际化变量
- 优化了 1pctl 脚本中的输出信息
- 统一了安装脚本中的日志输出格式
- 移除了快速启动脚本中不必要的版本替换逻辑
- 完善卸载功能,增加删除 lang 文件
- 修复安装日志输出路径
- 优化 Docker 安装过程日志记录
- 调整面板启动检测逻辑
- 简化结果显示函数
…P 数据库和语言文件的安装 - 优化初始化配置过程 - 美化安装结果展示
Copy link

f2c-ci-robot bot commented Feb 7, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

f2c-ci-robot bot commented Feb 7, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wanghe-fit2cloud
Copy link
Member

感谢支持!我们将在近期对您的 pr 进行评估。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants