Fix and install module configuration directory
The module configuration directory didn't have a value in the CMake files. The directory is now also installed by both packages and local installations.
This commit is contained in:
parent
e1a43c15c5
commit
9e9582e71f
@ -310,4 +310,5 @@ if (NOT PACKAGE)
|
||||
install(DIRECTORY DESTINATION var/log/maxscale)
|
||||
install(DIRECTORY DESTINATION var/run/maxscale)
|
||||
install(DIRECTORY DESTINATION var/lib/maxscale)
|
||||
install(DIRECTORY DESTINATION ${DEFAULT_MODULE_CONFIG_SUBPATH})
|
||||
endif()
|
||||
|
@ -21,6 +21,7 @@ set(DEFAULT_LANG_SUBPATH "lib/maxscale" CACHE PATH "Default language file subpat
|
||||
set(DEFAULT_EXEC_SUBPATH "${MAXSCALE_BINDIR}" CACHE PATH "Default executable subpath")
|
||||
set(DEFAULT_CONFIG_SUBPATH "etc" CACHE PATH "Default configuration subpath")
|
||||
set(DEFAULT_CONFIG_PERSIST_SUBPATH "maxscale.cnf.d" CACHE PATH "Default persisted configuration subpath")
|
||||
set(DEFAULT_MODULE_CONFIG_SUBPATH "${DEFAULT_CONFIG_SUBPATH}/maxscale.modules.d" CACHE PATH "Default configuration subpath")
|
||||
|
||||
set(DEFAULT_PIDDIR ${MAXSCALE_VARDIR}/${DEFAULT_PID_SUBPATH} CACHE PATH "Default PID file directory")
|
||||
set(DEFAULT_LOGDIR ${MAXSCALE_VARDIR}/${DEFAULT_LOG_SUBPATH} CACHE PATH "Default log directory")
|
||||
@ -31,6 +32,7 @@ set(DEFAULT_LANGDIR ${MAXSCALE_VARDIR}/${DEFAULT_LANG_SUBPATH} CACHE PATH "Defau
|
||||
set(DEFAULT_EXECDIR ${CMAKE_INSTALL_PREFIX}/${DEFAULT_EXEC_SUBPATH} CACHE PATH "Default executable directory")
|
||||
set(DEFAULT_CONFIGDIR /${DEFAULT_CONFIG_SUBPATH} CACHE PATH "Default configuration directory")
|
||||
set(DEFAULT_CONFIG_PERSISTDIR ${DEFAULT_DATADIR}/${DEFAULT_CONFIG_PERSIST_SUBPATH} CACHE PATH "Default persisted configuration directory")
|
||||
set(DEFAULT_MODULE_CONFIGDIR /${DEFAULT_MODULE_CONFIG_SUBPATH} CACHE PATH "Default module configuration directory")
|
||||
|
||||
# Massage TARGET_COMPONENT into a list
|
||||
if (TARGET_COMPONENT)
|
||||
|
@ -29,6 +29,9 @@ chmod 0755 @MAXSCALE_VARDIR@/lib/maxscale
|
||||
chmod 0755 @MAXSCALE_VARDIR@/cache/maxscale
|
||||
chmod 0755 @MAXSCALE_VARDIR@/run/maxscale
|
||||
|
||||
# Create the module configuration directory (default: /etc/maxscale.modules.d/)
|
||||
mkdir -p @DEFAULT_MODULE_CONFIGDIR@
|
||||
|
||||
# Install ldconfig files
|
||||
if [ -f "@CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.conf" ]
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user