]> git.deb.at Git - pkg/blosxom.git/blob - debian/postrm
1d2d137428c34393d23060232320ffb450134689
[pkg/blosxom.git] / debian / postrm
1 #!/bin/sh
2 # postrm script for blosxom
3 # copyright 2007-2008 by Rhonda D'Vine <rhonda@debian.org>
4 # Licenced in the same way as blosxom itself
5
6 set -e
7
8 # cleanup for old flavors that got installed by packages prior to 2.1.0
9 case "$1" in
10     purge)
11         if [ -d /var/lib/blosxom/data/flavours ] ; then
12                 cd /var/lib/blosxom/data/flavours
13                 for i in content_type.1993 content_type.html content_type.index \
14                         date.1993  date.html  date.index \
15                         foot.1993  foot.html  foot.index \
16                         head.1993  head.html  head.index \
17                         story.1993 story.html story.index ; do
18                         test ! -L $i || rm $i
19                 done
20         fi
21     ;;
22 esac
23
24 exit 0