File: mysql-common.postrm

package info (click to toggle)
mysql-defaults 1.0.5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 92 kB
  • sloc: sh: 60; makefile: 27
file content (11 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e

if [ "$1" = "purge" ]; then
  update-alternatives --remove my.cnf /etc/mysql/my.cnf.migrated
  rm -f /etc/mysql/my.cnf.migrated  # created by mysql-common from our obsolete conffile my.cnf
  rm -f /etc/mysql/my.cnf.old       # created by mariadb-common from our obsolete conffile my.cnf
  rmdir /etc/mysql 2>/dev/null || true
fi

#DEBHELPER#