diff --git a/config/panel.go b/config/panel.go index 757804f2..eaaf3f4a 100644 --- a/config/panel.go +++ b/config/panel.go @@ -8,7 +8,7 @@ func init() { config := facades.Config() config.Add("panel", map[string]any{ "name": "耗子 Linux 面板", - "version": "v2.1.44", + "version": "v2.2.0", "ssl": config.Env("APP_SSL", false), }) } diff --git a/panel-example.conf b/panel-example.conf index 160b253f..ea6a8c95 100644 --- a/panel-example.conf +++ b/panel-example.conf @@ -4,6 +4,6 @@ APP_DEBUG=false APP_PORT=8888 APP_ENTRANCE=/ APP_SSL=false -APP_LOCALE= +APP_LOCALE=zh_CN JWT_SECRET= diff --git a/scripts/update_panel.sh b/scripts/update_panel.sh index 1a732fe9..b5675c4c 100644 --- a/scripts/update_panel.sh +++ b/scripts/update_panel.sh @@ -101,12 +101,15 @@ if version_lt "$oldVersion" "2.1.39"; then systemctl start podman fi -if version_lt "$oldVersion" "2.1.40"; then - echo "更新面板到 v2.1.40 ..." - echo "Update panel to v2.1.40 ..." +if version_lt "$oldVersion" "2.2.0"; then + echo "更新面板到 v2.2.0 ..." + echo "Update panel to v2.2.0 ..." + echo "APP_LOCALE=zh_CN" >> $panelPath/panel.conf if [ "${OS}" == "centos" ]; then dnf makecache - dnf install -y p7zip p7zip-plugins + dnf install -y p7zip p7zip-plugins rsyslog + systemctl enable rsyslog + systemctl start rsyslog else apt-get update -y apt-get install -y p7zip p7zip-full