Commit 6e5c2466 authored by Daniel Black's avatar Daniel Black Committed by Axel Schwenke

MDEV-11670: ensure sysconfdir/sysconf2dir are not blank for mariadb@.service

parent 91f16948
......@@ -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)
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment