MXS-2578: Remove installation of /var/lib/maxscale

The directory was installed as the root user but later on in the
installation process the owner would be changed to the maxscale user. This
causes some validation programs to fail as they expect installed files to
retain the original ownership.
This commit is contained in:
Markus Mäkelä 2019-06-26 16:53:19 +03:00
parent 83e276ebd3
commit a6617f52fc
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -40,9 +40,6 @@ set(CPACK_RPM_USER_FILELIST "${IGNORED_DIRS}")
if(TARGET_COMPONENT STREQUAL "core" OR TARGET_COMPONENT STREQUAL "all")
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE ${CMAKE_BINARY_DIR}/postinst)
set(CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE ${CMAKE_BINARY_DIR}/postrm)
# Installing this prevents RPM from deleting the /var/lib/maxscale folder
install(DIRECTORY DESTINATION ${MAXSCALE_VARDIR}/lib/maxscale)
endif()
if(EXTRA_PACKAGE_DEPENDENCIES)