avoid uninitialized value warning when running -dumpsetup
[ikiwiki.git] / debian / preinst
blob4158b2ae6636667d9b86583e7720cbe4153164b0
1 #!/bin/sh
2 set -e
3 #DEBHELPER#
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
11 mv -f /etc/wikilist /etc/ikiwiki/wikilist
12 else
13 rm -f /etc/wikilist
17 if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 3.02; then
18 # replaced by symlink
19 rm -rf /usr/share/doc/ikiwiki/examples