2019-10-14 09:04:55 +00:00
|
|
|
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
|
2020-01-02 18:17:25 +00:00
|
|
|
index 8217bb76..4149a764 100644
|
2019-10-14 09:04:55 +00:00
|
|
|
--- a/scripts/CMakeLists.txt
|
|
|
|
+++ b/scripts/CMakeLists.txt
|
2020-01-02 18:17:25 +00:00
|
|
|
@@ -513,4 +513,30 @@ ELSE()
|
2019-10-14 09:04:55 +00:00
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
2015-09-23 10:31:06 +00:00
|
|
|
)
|
|
|
|
ENDIF()
|
2014-07-22 08:27:55 +00:00
|
|
|
+
|
|
|
|
+ # files for systemd
|
|
|
|
+ SET(SYSTEMD_SCRIPTS
|
|
|
|
+ mysql.tmpfiles.d
|
2014-07-24 08:00:55 +00:00
|
|
|
+ mysql.service
|
2017-07-31 16:16:50 +00:00
|
|
|
+ mysql@.service
|
2014-07-24 08:00:55 +00:00
|
|
|
+ mysql-prepare-db-dir
|
2015-02-18 20:41:01 +00:00
|
|
|
+ mysql-wait-stop
|
2014-07-24 08:00:55 +00:00
|
|
|
+ mysql-check-socket
|
|
|
|
+ mysql-scripts-common
|
|
|
|
+ mysql_config_multilib
|
2014-07-25 14:51:11 +00:00
|
|
|
+ my.cnf
|
2015-01-12 15:34:36 +00:00
|
|
|
+ server.cnf
|
2014-07-22 08:27:55 +00:00
|
|
|
+ )
|
|
|
|
+ FOREACH(file ${SYSTEMD_SCRIPTS})
|
|
|
|
+ IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh)
|
|
|
|
+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh
|
|
|
|
+ ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
|
|
|
|
+ ELSEIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.in)
|
|
|
|
+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.in
|
|
|
|
+ ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
|
|
|
|
+ ELSE()
|
|
|
|
+ MESSAGE(FATAL_ERROR "Can not find ${file}.sh or ${file}.in in "
|
|
|
|
+ "${CMAKE_CURRENT_SOURCE_DIR}" )
|
|
|
|
+ ENDIF()
|
|
|
|
+ ENDFOREACH()
|
|
|
|
ENDIF()
|