summaryrefslogtreecommitdiff
path: root/debian/preinst
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-15 16:00:34 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-15 16:00:34 +0000
commit5f280af23ce105beba10fe5d5e9699269f8b531a (patch)
tree2ae8a1166bac00f56354b7b73f6c002b66d9399b /debian/preinst
parent694eb98d3e186ff2db26415e80e71651a7cb571e (diff)
releasing version 1.2
Diffstat (limited to 'debian/preinst')
-rwxr-xr-xdebian/preinst13
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