summaryrefslogtreecommitdiff
path: root/debian/postinst
blob: 0a836a0b2a0a071e9ceaa194766674f96c731b2b (plain)
  1. #!/bin/sh
  2. set -e
  3. #DEBHELPER#
  4. # Change this when some incompatible change is made that requires
  5. # rebuilding all wikis.
  6. firstcompat=2.52
  7. if [ "$1" = configure ] && \
  8. dpkg --compare-versions "$2" lt "$firstcompat"; then
  9. ikiwiki-mass-rebuild
  10. else
  11. ikiwiki-mass-rebuild -refresh -wrappers
  12. fi