File: mysql-common.postrm

package info (click to toggle)
mysql-defaults 1.0.2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 80 kB
  • ctags: 1
  • sloc: sh: 60; makefile: 6
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#