From bde2c50696983e65d7ea9505d993e5aa17777fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 28 Sep 2023 19:39:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20MySQL=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E6=9C=AA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/panel.go | 2 +- scripts/mysql/update.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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}"