Skip to content

Commit

Permalink
Fixed Mariadb systemctl service script
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 10, 2022
1 parent 34e30b6 commit 56d2964
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions mysql/debian/11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,6 @@ function install {
apt-get install -y --allow-unauthenticated default-mysql-server ||
apt-get install -y --allow-unauthenticated mariadb-server

# alias mariadb.service to mysql.service and mysqld.service as in debian repo
# allowing us to use same service name (mysql, mysqld, or mariadb) across platforms
(cat << 'EOF'
# Add mysql Aliases by including distro script as recommended in /lib/systemd/system/mariadb.service
.include /lib/systemd/system/mariadb.service
[Install]
Alias=
Alias=mysqld.service
Alias=mariadb.service
EOF
) > /lib/systemd/system/mysql.service
chmod 0644 /lib/systemd/system/mysql.service
(cat << 'EOF'
# Add mysql Aliases by including distro script as recommended in /lib/systemd/system/mariadb.service
.include /lib/systemd/system/mariadb.service
[Install]
Alias=
Alias=mysql.service
Alias=mariadb.service
EOF
) > /lib/systemd/system/mysqld.service
chmod 0644 /lib/systemd/system/mysqld.service
systemctl daemon-reload

# if db is remote don't run local service
reconfigureMysqlSystemdService

Expand Down

0 comments on commit 56d2964

Please sign in to comment.