From b3b8c22634006525fb35d265560676bd60e965df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 12 Jun 2024 01:32:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8D=E7=A7=B0=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=B8=BA=E8=80=97=E5=AD=90=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CODE_OF_CONDUCT.md | 2 +- README.md | 12 ++++++------ SECURITY.md | 4 ++-- app/console/commands/panel.go | 2 +- app/http/controllers/cron_controller.go | 4 ++-- config/panel.go | 2 +- docs/docs.go | 4 ++-- docs/swagger.json | 4 ++-- docs/swagger.yaml | 4 ++-- internal/services/website.go | 6 +++--- main.go | 4 ++-- scripts/gitea/install.sh | 2 +- scripts/install_panel.sh | 14 +++++++------- scripts/mysql/install.sh | 2 +- scripts/mysql/update.sh | 2 +- scripts/openresty/install.sh | 16 ++++++++-------- scripts/php/install.sh | 2 +- scripts/php_extensions/imagick.sh | 2 +- scripts/podman/install.sh | 2 +- scripts/podman/uninstall.sh | 2 +- scripts/podman/update.sh | 2 +- scripts/postgresql/install.sh | 2 +- scripts/postgresql/update.sh | 2 +- scripts/redis/install.sh | 2 +- scripts/uninstall_panel.sh | 10 +++++----- scripts/update_panel.sh | 2 +- 26 files changed, 56 insertions(+), 56 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 985df32d..5eda2d9e 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,6 +1,6 @@ ## 行为准则 -耗子 Linux 面板遵守业界通用的行为准则。任何违反行为准则的行为都可以报告给我们: +耗子面板遵守业界通用的行为准则。任何违反行为准则的行为都可以报告给我们: - 参与者将容忍反对意见。 - 参与者必须确保他们的语言和行为没有人身攻击和贬低个人言论。 diff --git a/README.md b/README.md index 080188bf..ff0245ad 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [简体中文] | [English]

-

耗子 Linux 面板

+

耗子面板

@@ -12,7 +12,7 @@ FOSSA Status

-耗子 Linux 面板是使用 Golang + Vue 开发的开源轻量 Linux 服务器运维管理面板。 +耗子面板是使用 Golang + Vue 开发的开源轻量 Linux 服务器运维管理面板。 交流QQ群:[12370907](https://jq.qq.com/?_wv=1027&k=I1oJKSTH) | 论坛:[tom.moe](https://tom.moe) | 赞助:[爱发电](https://afdian.net/a/TheTNB) @@ -32,7 +32,7 @@ ## 运行环境 -耗子 Linux 面板仅支持 `amd64` | `arm64` 架构下的主流系统的最新版本,不支持 `Ubuntu`,因为其发版太过频繁,难以维护。 +耗子面板仅支持 `amd64` | `arm64` 架构下的主流系统的最新版本,不支持 `Ubuntu`,因为其发版太过频繁,难以维护。 低配机器建议使用 `Debian`,资源占用较 `RHEL` 系更低。其他机器建议使用 `AlmaLinux` | `RockyLinux`,维护周期更长也更稳定。 @@ -50,7 +50,7 @@ ## 安装面板 > **Warning** -> 安装面板前,你需要了解 LNMP 环境的基本知识,以及如何处理常见的 LNMP 环境问题,不建议 0 基础的用户安装和使用耗子 Linux 面板。 +> 安装面板前,你需要了解 LNMP 环境的基本知识,以及如何处理常见的 LNMP 环境问题,不建议 0 基础的用户安装和使用耗子面板。 如果你决定继续,请以`root`用户登录服务器,执行以下命令安装面板: @@ -88,7 +88,7 @@ panel ## 赞助商 -如果耗子 Linux 面板对你有帮助,欢迎[赞助我们](https://afdian.net/a/TheTNB),感谢以下支持者/赞助商的支持: +如果耗子面板对你有帮助,欢迎[赞助我们](https://afdian.net/a/TheTNB),感谢以下支持者/赞助商的支持: **同时接受云资源赞助,可通过QQ群咨询联系** @@ -127,4 +127,4 @@ panel ## 免责声明 -严禁使用耗子 Linux 面板从事任何非法活动,非法站点请勿向我们请求任何形式的技术支持,如果在技术支持过程中发现非法内容,我们将立即停止技术支持并留存相关证据。 +严禁使用耗子面板从事任何非法活动,非法站点请勿向我们请求任何形式的技术支持,如果在技术支持过程中发现非法内容,我们将立即停止技术支持并留存相关证据。 diff --git a/SECURITY.md b/SECURITY.md index da5aafb0..a0a99354 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,8 +1,8 @@ ## 安全说明 -安全性是我们最关心的问题之一,我们已在多个不同应用的生产环境广泛应用耗子 Linux 面板,至今无一例安全事故。 +安全性是我们最关心的问题之一,我们已在多个不同应用的生产环境广泛应用耗子面板,至今无一例安全事故。 -耗子 Linux 面板采用业界多种方案尽可能保证面板的安全性,但是我们不能保证面板的绝对安全性,**因此我们不对面板的安全性做任何保证**。 +耗子面板采用业界多种方案尽可能保证面板的安全性,但是我们不能保证面板的绝对安全性,**因此我们不对面板的安全性做任何保证**。 如果您在使用面板的过程中发现任何安全问题,请勿提交 Issue,可通过以下方式直接联系我们: diff --git a/app/console/commands/panel.go b/app/console/commands/panel.go index 89767760..d16a50d5 100644 --- a/app/console/commands/panel.go +++ b/app/console/commands/panel.go @@ -63,7 +63,7 @@ func (receiver *Panel) Handle(ctx console.Context) error { return nil } - settings := []models.Setting{{Key: models.SettingKeyName, Value: "耗子 Linux 面板"}, {Key: models.SettingKeyMonitor, Value: "1"}, {Key: models.SettingKeyMonitorDays, Value: "30"}, {Key: models.SettingKeyBackupPath, Value: "/www/backup"}, {Key: models.SettingKeyWebsitePath, Value: "/www/wwwroot"}, {Key: models.SettingKeyVersion, Value: facades.Config().GetString("panel.version")}} + settings := []models.Setting{{Key: models.SettingKeyName, Value: "耗子面板"}, {Key: models.SettingKeyMonitor, Value: "1"}, {Key: models.SettingKeyMonitorDays, Value: "30"}, {Key: models.SettingKeyBackupPath, Value: "/www/backup"}, {Key: models.SettingKeyWebsitePath, Value: "/www/wwwroot"}, {Key: models.SettingKeyVersion, Value: facades.Config().GetString("panel.version")}} err = facades.Orm().Query().Create(&settings) if err != nil { color.Red().Printfln(translate.Get("commands.panel.init.fail")) diff --git a/app/http/controllers/cron_controller.go b/app/http/controllers/cron_controller.go index e70d2e2f..3526821e 100644 --- a/app/http/controllers/cron_controller.go +++ b/app/http/controllers/cron_controller.go @@ -85,7 +85,7 @@ func (r *CronController) Add(ctx http.Context) http.Response { shell = `#!/bin/bash export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH -# 耗子 Linux 面板 - 数据备份脚本 +# 耗子面板 - 数据备份脚本 type=` + backupType + ` path=` + backupPath + ` @@ -102,7 +102,7 @@ panel backup ${type} ${name} ${path} ${save} 2>&1 shell = `#!/bin/bash export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH -# 耗子 Linux 面板 - 日志切割脚本 +# 耗子面板 - 日志切割脚本 name=` + website + ` save=` + cast.ToString(save) + ` diff --git a/config/panel.go b/config/panel.go index 856e29a6..7810e967 100644 --- a/config/panel.go +++ b/config/panel.go @@ -7,7 +7,7 @@ import ( func init() { config := facades.Config() config.Add("panel", map[string]any{ - "name": "耗子 Linux 面板", + "name": "耗子面板", "version": "v2.2.7", "ssl": config.Env("APP_SSL", false), }) diff --git a/docs/docs.go b/docs/docs.go index abdf69c2..9b7b6dc2 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -5598,8 +5598,8 @@ var SwaggerInfo = &swag.Spec{ Host: "", BasePath: "/api", Schemes: []string{}, - Title: "耗子 Linux 面板 API", - Description: "耗子 Linux 面板的 API 信息", + Title: "耗子面板 API", + Description: "耗子面板的 API 信息", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", diff --git a/docs/swagger.json b/docs/swagger.json index c5d309aa..dad152af 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1,8 +1,8 @@ { "swagger": "2.0", "info": { - "description": "耗子 Linux 面板的 API 信息", - "title": "耗子 Linux 面板 API", + "description": "耗子面板的 API 信息", + "title": "耗子面板 API", "contact": { "name": "耗子科技", "email": "admin@haozi.net" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index ce7d4290..a545a8fc 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -672,10 +672,10 @@ info: contact: email: admin@haozi.net name: 耗子科技 - description: 耗子 Linux 面板的 API 信息 + description: 耗子面板的 API 信息 license: name: GNU Affero General Public License v3 - title: 耗子 Linux 面板 API + title: 耗子面板 API version: "2" paths: /panel/cert/algorithms: diff --git a/internal/services/website.go b/internal/services/website.go index 98b6d9af..0daf9cb1 100644 --- a/internal/services/website.go +++ b/internal/services/website.go @@ -64,7 +64,7 @@ func (r *WebsiteImpl) Add(website types.Website) (models.Website, error) { - 耗子 Linux 面板 + 耗子面板