1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-21 13:40:58 +03:00
Files
mariadb-columnstore-engine/build/preUn_platform.sh
Andrew Hutchings 474589e516 MCOL-3707 Packaging pre/post functions
Adds support for:
* columnstore-post-install on RPM install
* MCOL-3708 mcsadmin shutdown on uninstall

There is a counterpart for the server tree to propagate the RPM settings
up and add Debian packaging support.
2020-01-21 11:34:01 -08:00

18 lines
214 B
Bash

mcsadmin shutdown y
rpmmode=upgrade
if [ "$1" -eq "$1" 2> /dev/null ]; then
if [ $1 -ne 1 ]; then
rpmmode=erase
fi
else
rpmmode=erase
fi
if [ $rpmmode = erase ]; then
columnstore-pre-uninstall
fi
exit 0