summaryrefslogtreecommitdiff
path: root/debian/preinst
blob: e566939f6c6e0a1e7c083cd7897620ae42a5a3cf (plain)
  1. #!/bin/sh
  2. #DEBHELPER#
  3. if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 1.2; then
  4. if [ -e /etc/wikilist ]; then
  5. if [ ! -e /etc/ikiwiki/wikilist ]; then
  6. mv -f /etc/wikilist /etc/ikiwiki/wikilist
  7. else
  8. rm -f /etc/wikilist
  9. fi
  10. fi
  11. fi