1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4751: autoConfigure to run in post-install on files in correct paths.

This commit is contained in:
benthompson15
2021-06-04 12:50:15 -05:00
committed by David Hall
parent c5c82c1d4f
commit 21e6e88d0f
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ usr/bin/ExeMgr
usr/bin/PrimProc
usr/bin/StorageManager
usr/bin/WriteEngineServer
usr/bin/autoConfigure
usr/bin/clearShm
usr/bin/cleartablelock
usr/bin/columnstore-post-install

View File

@ -92,9 +92,14 @@ if [ -f @ENGINE_SYSCONFDIR@/columnstore/storagemanager.cnf.rpmsave ]; then
/bin/cp -f @ENGINE_SYSCONFDIR@/columnstore/storagemanager.cnf.rpmsave @ENGINE_SYSCONFDIR@/columnstore/storagemanager.cnf
fi
# Make copy of the new .xml file in 2 places so its preserved if something goes wrong in autoConfigure
# Original Columnstore.xml will still be in .rpmsave
if [ -f @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml.rpmsave ]; then
/bin/cp -f @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml.rpmnew
/bin/cp -f @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml.new
/bin/cp -f @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml.rpmsave @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml
@ENGINE_BINDIR@/autoConfigure
mv -f @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml.new @ENGINE_SYSCONFDIR@/columnstore/Columnstore.xml
fi
touch /dev/shm/columnstore-test && rm /dev/shm/columnstore-test