diff options
Diffstat (limited to 'debian/preinst')
-rwxr-xr-x | debian/preinst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/preinst b/debian/preinst new file mode 100755 index 000000000..e566939f6 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,13 @@ +#!/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 + mv -f /etc/wikilist /etc/ikiwiki/wikilist + else + rm -f /etc/wikilist + fi + fi +fi |