mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
01e9e3955a
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.
16 lines
376 B
Bash
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#
|