Skip to content

Commit

Permalink
feat: 优化 MySQL systemd 判断
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Sep 28, 2023
1 parent 92e7772 commit 8c5d0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mysql/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8c5d0e9

Please sign in to comment.