From 6356b82a21f7b5bcd0695c4cc3a5e24ee85a4316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 27 Jul 2023 17:03:06 +0800 Subject: [PATCH] feat: release v2.0.23 --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- app/http/controllers/cron_controller.go | 4 ++-- config/panel.go | 4 ++-- scripts/install_panel.sh | 14 +++++++------- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 5bda00bc..738e2de5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -58,7 +58,7 @@ body: attributes: label: 耗子面板版本 (HaoZi Panel Version) description: | - 请提供耗子面板的版本号。 + 请提供面板的版本号。 Please provide the version number of the panel. placeholder: "2.0.0" validations: diff --git a/app/http/controllers/cron_controller.go b/app/http/controllers/cron_controller.go index 03b15bb0..2fa7f7a0 100644 --- a/app/http/controllers/cron_controller.go +++ b/app/http/controllers/cron_controller.go @@ -80,7 +80,7 @@ func (c *CronController) Add(ctx http.Context) { shell = `#!/bin/bash export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH -# 耗子面板 - 数据备份脚本 +# 耗子Linux面板 - 数据备份脚本 type=` + backupType + ` path=` + backupPath + ` @@ -97,7 +97,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 6e893464..47d0ea85 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": "耗子面板", - "version": "v2.0.22", + "name": "耗子Linux面板", + "version": "v2.0.23", }) } diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index d124258c..21048442 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -17,7 +17,7 @@ See the License for the specific language governing permissions and limitations under the License. ' -LOGO="+----------------------------------------------------\n| 耗子面板安装脚本\n+----------------------------------------------------\n| Copyright © 2022-"$(date +%Y)" 耗子科技 All rights reserved.\n+----------------------------------------------------" +LOGO="+----------------------------------------------------\n| 耗子Linux面板安装脚本\n+----------------------------------------------------\n| Copyright © 2022-"$(date +%Y)" 耗子科技 All rights reserved.\n+----------------------------------------------------" HR="+----------------------------------------------------" download_Url="" setup_Path="/www" @@ -35,26 +35,26 @@ Prepare_system() { OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") if [ "${OS}" == "unknown" ]; then echo -e $HR - echo "错误:该系统不支持安装耗子面板,请更换Debian12/RHEL9安装。" + echo "错误:该系统不支持安装耗子Linux面板,请更换Debian12/RHEL9安装。" exit 1 fi if [ "${ARCH}" != "x86_64" ] && [ "${ARCH}" != "aarch64" ]; then echo -e $HR - echo "错误:该系统架构不支持安装耗子面板,请更换x86_64/aarch64架构安装。" + echo "错误:该系统架构不支持安装耗子Linux面板,请更换x86_64/aarch64架构安装。" exit 1 fi is64bit=$(getconf LONG_BIT) if [ "${is64bit}" != '64' ]; then echo -e $HR - echo "错误:32位系统不支持安装耗子面板,请更换64位系统安装。" + echo "错误:32位系统不支持安装耗子Linux面板,请更换64位系统安装。" exit 1 fi isInstalled=$(systemctl status panel 2>&1 | grep "Active") if [ "${isInstalled}" != "" ]; then echo -e $HR - echo "错误:耗子面板已安装,请勿重复安装。" + echo "错误:耗子Linux面板已安装,请勿重复安装。" exit 1 fi @@ -130,7 +130,7 @@ Prepare_system() { apt install -y curl wget zip unzip tar git jq git dos2unix else echo -e $HR - echo "错误:该系统不支持安装耗子面板,请更换Debian12/RHEL9安装。" + echo "错误:该系统不支持安装耗子Linux面板,请更换Debian12/RHEL9安装。" exit 1 fi @@ -175,7 +175,7 @@ Init_Panel() { panelZip=$(curl "https://api.github.com/repos/HaoZi-Team/Panel/releases/latest" | jq -r '.assets[] | select(.name | contains("arm64")) | .browser_download_url') else echo -e $HR - echo "错误:该系统架构不支持安装耗子面板,请更换x86_64/aarch64架构安装。" + echo "错误:该系统架构不支持安装耗子Linux面板,请更换x86_64/aarch64架构安装。" exit 1 fi if [ "$?" != "0" ] || [ "${panelZip}" == "" ]; then