2006-05-15 18:00:34 +02:00
|
|
|
#!/bin/sh
|
2008-10-06 01:17:16 +02:00
|
|
|
set -e
|
2006-05-15 18:00:34 +02:00
|
|
|
#DEBHELPER#
|
|
|
|
|
|
|
|
if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 1.2; then
|
|
|
|
if [ -e /etc/wikilist ]; then
|
|
|
|
if [ ! -e /etc/ikiwiki/wikilist ]; then
|
2006-05-16 17:20:33 +02:00
|
|
|
if [ ! -e /etc/ikiwiki ]; then
|
|
|
|
mkdir /etc/ikiwiki
|
|
|
|
fi
|
2006-05-15 18:00:34 +02:00
|
|
|
mv -f /etc/wikilist /etc/ikiwiki/wikilist
|
|
|
|
else
|
|
|
|
rm -f /etc/wikilist
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|