Skip to content

Commit

Permalink
feat: bump version v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed May 19, 2024
1 parent d56d3ec commit 305777f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
})
}
2 changes: 1 addition & 1 deletion panel-example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ APP_DEBUG=false
APP_PORT=8888
APP_ENTRANCE=/
APP_SSL=false
APP_LOCALE=
APP_LOCALE=zh_CN

JWT_SECRET=
11 changes: 7 additions & 4 deletions scripts/update_panel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 305777f

Please sign in to comment.