summaryrefslogtreecommitdiff
path: root/debian/preinst
blob: 12d3d83afaa34d38faa9f9a8445080a52446c049 (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. if [ ! -e /etc/ikiwiki ]; then
  7. mkdir /etc/ikiwiki
  8. fi
  9. mv -f /etc/wikilist /etc/ikiwiki/wikilist
  10. else
  11. rm -f /etc/wikilist
  12. fi
  13. fi
  14. fi