Fix broken upgrades on CentOS 7

The upgrade process removed the /var/lib/maxscale directory as the newer
version didn't use it. This can be fixed by installing an empty directory
into /var/lib/maxscale.
This commit is contained in:
Markus Makela
2016-09-23 16:29:26 +03:00
parent e618370cdb
commit 649efb91b5
3 changed files with 4 additions and 1 deletions

View File

@ -23,3 +23,6 @@ set(IGNORED_DIRS
"%ignore ${CMAKE_INSTALL_PREFIX}/share/man/man1")
set(CPACK_RPM_USER_FILELIST "${IGNORED_DIRS}")
# Installing this prevents RPM from deleting the /var/lib/maxscale folder
install(DIRECTORY DESTINATION ${MAXSCALE_VARDIR}/lib/maxscale)