We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5920637 + bc2a88d commit a6c3f58Copy full SHA for a6c3f58
1 file changed
lib/databases/mysql
@@ -16,7 +16,13 @@ MYSQL_DRIVER=${MYSQL_DRIVER:-PyMySQL}
16
register_database mysql
17
18
MYSQL_SERVICE_NAME=mysql
19
-if is_suse || is_fedora && ! is_oraclelinux; then
+if is_fedora && ! is_oraclelinux; then
20
+ MYSQL_SERVICE_NAME=mariadb
21
+elif is_suse && systemctl list-unit-files | grep -q 'mariadb\.service'; then
22
+ # Older mariadb packages on SLES 12 provided mysql.service. The
23
+ # newer ones on SLES 12 and 15 use mariadb.service; they also
24
+ # provide a mysql.service symlink for backwards-compatibility, but
25
+ # let's not rely on that.
26
MYSQL_SERVICE_NAME=mariadb
27
fi
28
0 commit comments