You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
move deb packaging files from server to engine repo
This commit is contained in:
committed by
mariadb-RomanNavrotskiy
parent
f0240a1fc5
commit
68f15c9291
24
debian/mariadb-plugin-columnstore.postrm
vendored
Normal file
24
debian/mariadb-plugin-columnstore.postrm
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$1" = "purge" ]; then
|
||||
rm -rf /var/lib/columnstore
|
||||
rm -rf /etc/columnstore
|
||||
rm -f /etc/mysql/mariadb.conf.d/columnstore.cnf.rpmsave
|
||||
fi
|
||||
|
||||
# Automatically restart MariaDB after ColumnStore plugin has been removed
|
||||
case "$1" in
|
||||
purge|remove|disappear)
|
||||
if [ -d /run/systemd/system ]; then
|
||||
# If systemd
|
||||
deb-systemd-invoke restart mariadb.service >/dev/null
|
||||
elif [ -x "/etc/init.d/mariadb" ]; then
|
||||
# Fall-back to SysV init
|
||||
invoke-rc.d mariadb restart || exit $?
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
Reference in New Issue
Block a user