Blame SOURCES/mariadb-ownsetup.patch

a41a5b
--- mariadb-10.4.14/support-files/CMakeLists.txt	2020-08-06 17:28:28.000000000 +0200
a41a5b
+++ mariadb-10.4.14/support-files/CMakeLists.txt_patched	2020-09-03 13:21:07.826658279 +0200
a41a5b
@@ -187,6 +187,7 @@ IF(UNIX)
a41a5b
               COMPONENT SharedLibraries)
a41a5b
       INSTALL(FILES rpm/mysql-clients.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
a41a5b
               COMPONENT Client)
a41a5b
+      CONFIGURE_FILE(rpm/server.cnf ${CMAKE_CURRENT_SOURCE_DIR}/rpm/server.cnf @ONLY)
a41a5b
       INSTALL(FILES rpm/server.cnf DESTINATION ${INSTALL_SYSCONF2DIR}
a41a5b
               COMPONENT IniFiles)
a41a5b
       INSTALL(FILES rpm/enable_encryption.preset DESTINATION ${INSTALL_SYSCONF2DIR}
a41a5b
a41a5b
diff -up mariadb-10.0.15/support-files/rpm/server.cnf.ownsetup mariadb-10.0.15/support-files/rpm/server.cnf
a41a5b
--- mariadb-10.0.15/support-files/rpm/server.cnf.ownsetup	2015-01-24 23:55:55.110063592 +0100
a41a5b
+++ mariadb-10.0.15/support-files/rpm/server.cnf	2015-01-24 23:57:42.308114387 +0100
a41a5b
@@ -9,7 +9,16 @@
a41a5b
 [server]
a41a5b
 
a41a5b
 # this is only for the mysqld standalone daemon
a41a5b
+# Settings user and group are ignored when systemd is used.
a41a5b
+# If you need to run mysqld under a different user or group,
a41a5b
+# customize your systemd unit file for mysqld/mariadb according to the
a41a5b
+# instructions in http://fedoraproject.org/wiki/Systemd
a41a5b
 [mysqld]
a41a5b
+datadir=@MYSQL_DATADIR@
a41a5b
+socket=@MYSQL_UNIX_ADDR@
a41a5b
+log-error=@LOG_LOCATION@
a41a5b
+pid-file=@PID_FILE_DIR@/@DAEMON_NO_PREFIX@.pid
a41a5b
+
a41a5b
 
a41a5b
 #
a41a5b
 # * Galera-related settings