Skip to content

Commit

Permalink
MDEV-11670: ensure sysconfdir/sysconf2dir are not blank for mariadb@.…
Browse files Browse the repository at this point in the history
…service
  • Loading branch information
grooverdan authored and hgxl64 committed Jun 14, 2019
1 parent 91f1694 commit 6e5c246
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions support-files/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,18 @@ IF(UNIX)
SET(scriptdir ${INSTALL_SCRIPTDIRABS})
SET(libexecdir ${INSTALL_SBINDIRABS})
SET(pkgdatadir ${INSTALL_MYSQLSHAREDIRABS})
SET(sysconfdir ${INSTALL_SYSCONFDIR})
SET(sysconf2dir ${INSTALL_SYSCONF2DIR})
IF(INSTALL_SYSCONFDIR)
SET(sysconfdir ${INSTALL_SYSCONFDIR})
ELSEIF(DEFAULT_SYSCONFDIR)
SET(sysconfdir ${DEFAULT_SYSCONFDIR})
ELSE()
SET(sysconfdir "/etc")
ENDIF()
IF(INSTALL_SYSCONFDIR)

This comment has been minimized.

Copy link
@GeoffMonteeMariaDB

GeoffMonteeMariaDB Jun 14, 2019

Shouldn't this be IF(INSTALL_SYSCONF2DIR)?

SET(sysconf2dir ${INSTALL_SYSCONF2DIR})
ELSE()
SET(sysconf2dir "${sysconfdir}/mysql")
ENDIF()
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql.server.sh
${CMAKE_CURRENT_BINARY_DIR}/mysql.server @ONLY)
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/mysql.server
Expand Down

0 comments on commit 6e5c246

Please sign in to comment.