let's assume some web server will think OFF is a good idea..
[ikiwiki] / debian / postinst
1 #!/bin/sh
2 set -e
3 #DEBHELPER#
4
5 # Change this when some incompatible change is made that requires
6 # rebuilding all wikis.
7 firstcompat=3.20100424
8
9 if [ "$1" = configure ] && \
10    dpkg --compare-versions "$2" lt "$firstcompat"; then
11         ikiwiki-mass-rebuild
12 else
13         ikiwiki-mass-rebuild -refresh -wrappers
14 fi