Merge branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info
[ikiwiki] / debian / preinst
1 #!/bin/sh
2
3 #DEBHELPER#
4
5 if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 1.2; then
6         if [ -e /etc/wikilist ]; then
7                 if [ ! -e /etc/ikiwiki/wikilist ]; then
8                         if [ ! -e /etc/ikiwiki ]; then
9                                 mkdir /etc/ikiwiki
10                         fi
11                         mv -f /etc/wikilist /etc/ikiwiki/wikilist
12                 else
13                         rm -f /etc/wikilist
14                 fi
15         fi
16 fi