MXS-2931: Use a preun, not a postun, script

The script must be called before the package is removed on CentOS 6 to
allow the process to be stopped correctly.
This commit is contained in:
Markus Mäkelä 2020-03-30 17:52:33 +03:00
parent c6a9c8bb0f
commit e0cd4ec485
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -39,7 +39,7 @@ 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)
set(CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE ${CMAKE_BINARY_DIR}/postrm)
endif()
if(EXTRA_PACKAGE_DEPENDENCIES)