mariadb/debian/mariadb-common.postrm
Tuukka Pasanen 01e9e3955a MDEV-31242: Make sure every Debian post/pre script is using bash
Make sure that every post and pre script are using bash
and have set -e in next to shebang.

Command set -e makes sure that if script fails in
one command it will fail whole script.
2023-06-19 10:54:51 +01:00

16 lines
376 B
Bash

#!/bin/bash
set -e
case "$1" in
remove|disappear)
# New packaging paradigm for my.cnf handling among MySQL variants
# Used in Ubuntu since Dec-2014 and in Debian since Jul-2015
if [ -f /usr/share/mysql-common/configure-symlinks ]
then
/usr/share/mysql-common/configure-symlinks remove mariadb "/etc/mysql/mariadb.cnf"
fi
;;
esac
#DEBHELPER#