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