X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/5f280af23ce105beba10fe5d5e9699269f8b531a..aa65300c2f6a22d4372020b4b5b1a04b5842531a:/debian/preinst?ds=sidebyside diff --git a/debian/preinst b/debian/preinst index e566939f6..4158b2ae6 100755 --- a/debian/preinst +++ b/debian/preinst @@ -1,13 +1,20 @@ #!/bin/sh - +set -e #DEBHELPER# if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 1.2; then if [ -e /etc/wikilist ]; then if [ ! -e /etc/ikiwiki/wikilist ]; then + if [ ! -e /etc/ikiwiki ]; then + mkdir /etc/ikiwiki + fi mv -f /etc/wikilist /etc/ikiwiki/wikilist else rm -f /etc/wikilist fi fi fi +if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 3.02; then + # replaced by symlink + rm -rf /usr/share/doc/ikiwiki/examples +fi