ikiwiki/debian/preinst

17 lines
314 B
Plaintext
Raw Normal View History

2006-05-15 18:00:34 +02:00
#!/bin/sh
#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