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

feat: 优化 MySQL systemd 判断

This commit is contained in:
耗子
2023-09-28 13:06:31 +08:00
parent 92e77720f7
commit 8c5d0e905e

View File

@@ -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.