From 8c5d0e905e39c99b60f939af7c820ec0bfab11ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 28 Sep 2023 13:06:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=20MySQL=20systemd=20?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/mysql/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mysql/install.sh b/scripts/mysql/install.sh index 436f03bb..1008243b 100644 --- a/scripts/mysql/install.sh +++ b/scripts/mysql/install.sh @@ -290,8 +290,8 @@ ${mysqlPath}/bin/mysqld --initialize-insecure --user=mysql --basedir=${mysqlPath echo "export PATH=${mysqlPath}/bin:\$PATH" >> /etc/profile source /etc/profile -# ARM 环境下,没有 systemd 文件 -if [ "${ARCH}" == "aarch64" ]; then +# 检查 systemd 文件是否存在 +if [ -f "${mysqlPath}/lib/systemd/system/mysqld.service" ]; then mkdir -p ${mysqlPath}/lib/systemd/system cat > ${mysqlPath}/lib/systemd/system/mysqld.service << EOF # Copyright (c) 2015, 2023, Oracle and/or its affiliates.