From a6617f52fc6df62164bdc02184db53da5a978a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 26 Jun 2019 16:53:19 +0300 Subject: [PATCH] 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. --- cmake/package_rpm.cmake | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmake/package_rpm.cmake b/cmake/package_rpm.cmake index 52bcdc7ff..32afd8c7b 100644 --- a/cmake/package_rpm.cmake +++ b/cmake/package_rpm.cmake @@ -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)