Skip to content

Commit b9a69f7

Browse files
author
Jan Lindström
committed
Fix wsrep.cnf installation.
1 parent e16d91b commit b9a69f7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

support-files/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ FOREACH(inifile my-huge my-innodb-heavy-4G my-large my-medium my-small)
5050
ENDFOREACH()
5151
ENDIF()
5252

53+
IF(WITH_WSREP)
54+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/wsrep.cnf.sh
55+
${CMAKE_CURRENT_BINARY_DIR}/wsrep.${ini_file_extension} @ONLY)
56+
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/wsrep.${ini_file_extension}
57+
DESTINATION ${inst_location} COMPONENT IniFiles)
58+
ENDIF()
59+
5360
IF(UNIX)
5461
SET(prefix ${CMAKE_INSTALL_PREFIX})
5562
FOREACH(script mysqld_multi.server mysql-log-rotate binary-configure)
@@ -102,8 +109,6 @@ IF(UNIX)
102109
DESTINATION ${inst_location} COMPONENT SupportFiles
103110
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ
104111
GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
105-
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/wsrep.cnf.sh
106-
${CMAKE_CURRENT_BINARY_DIR}/wsrep.cnf @ONLY)
107112

108113
IF (INSTALL_SYSCONFDIR)
109114
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mysql-log-rotate DESTINATION ${INSTALL_SYSCONFDIR}/logrotate.d

0 commit comments

Comments
 (0)