]> git.proxmox.com Git - pmg-api.git/blob - debian/postrm
Use ucf to handle template overrides
[pmg-api.git] / debian / postrm
1 #!/bin/sh
2
3 set -e
4
5 if [ "$1" = "purge" ] && command -v ucf >/dev/null 2>&1; then
6
7 ucfq -w pmg-api | cut -d : -f 1 | while read -r cfile ; do
8 ucfr pmg-api --purge "$cfile"
9 ucf --purge "$cfile"
10 for ext in .ucf-new .ucf-old .ucf-dist ""; do
11 rm -f "${cfile}${ext}"
12 done
13 done
14 fi
15
16 # dh_installdeb will replace this with shell code automatically
17 # generated by other debhelper scripts.
18
19 #DEBHELPER#