summaryrefslogtreecommitdiff
path: root/debian/mariadb-common.postrm
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2012-01-26 12:55:12 +0100
committerunknown <knielsen@knielsen-hq.org>2012-01-26 12:55:12 +0100
commit438ed0408c69faa9e5c4c026e24ef52eac62f08e (patch)
tree64c77b9ce8796cfc9147ca75b1176365a045e9d9 /debian/mariadb-common.postrm
parent6f142ee51c86032b14b89252ffbe9b44e4d677a7 (diff)
downloadmariadb-git-438ed0408c69faa9e5c4c026e24ef52eac62f08e.tar.gz
.deb packaging fixes: make mariadb-common a real package, which depends on
mysql-common and places mariadb-specific stuff in /etc/mysql/conf.d/mariadb.cnf. This should allow to co-exist with default Debian mysql-common package and help resolve dependencies when installing mariadb among multiple available versions of MySQL from different repositories.
Diffstat (limited to 'debian/mariadb-common.postrm')
-rw-r--r--debian/mariadb-common.postrm8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/mariadb-common.postrm b/debian/mariadb-common.postrm
new file mode 100644
index 00000000000..027592f816e
--- /dev/null
+++ b/debian/mariadb-common.postrm
@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+if [ "$1" = "purge" ]; then
+ rmdir /etc/mysql/conf.d 2>/dev/null || true
+ rmdir /etc/mysql 2>/dev/null || true
+fi
+
+#DEBHELPER#