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

fix: 修复 MySQL 版本号未更新

This commit is contained in:
耗子
2023-09-28 19:39:26 +08:00
parent 0945949b37
commit bde2c50696
2 changed files with 8 additions and 1 deletions

View File

@@ -8,6 +8,6 @@ func init() {
config := facades.Config()
config.Add("panel", map[string]any{
"name": "耗子Linux面板",
"version": "v2.0.46",
"version": "v2.0.47",
})
}

View File

@@ -126,8 +126,15 @@ if [ "$?" != "0" ]; then
exit 1
fi
# 设置权限
chown -R mysql:mysql ${mysqlPath}
chmod -R 755 ${mysqlPath}
chmod 644 ${mysqlPath}/conf/my.cnf
# 启动服务
systemctl daemon-reload
systemctl enable mysqld
panel writePlugin mysql${1} ${mysqlVersion}
echo -e "${HR}\nMySQL-${1} 升级完成\n${HR}"