2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

feat: bump version v2.2.0

This commit is contained in:
耗子
2024-05-20 01:26:45 +08:00
parent d56d3ec1dd
commit 305777f65a
3 changed files with 9 additions and 6 deletions

View File

@@ -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),
})
}

View File

@@ -4,6 +4,6 @@ APP_DEBUG=false
APP_PORT=8888
APP_ENTRANCE=/
APP_SSL=false
APP_LOCALE=
APP_LOCALE=zh_CN
JWT_SECRET=

View File

@@ -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