diff --git a/config/panel.go b/config/panel.go index 891d0656..79adc4bf 100644 --- a/config/panel.go +++ b/config/panel.go @@ -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", }) } diff --git a/scripts/mysql/update.sh b/scripts/mysql/update.sh index 4fcc8717..bfd3ef7f 100644 --- a/scripts/mysql/update.sh +++ b/scripts/mysql/update.sh @@ -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}"