aboutsummaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst')
-rwxr-xr-xdebian/postinst25
1 files changed, 2 insertions, 23 deletions
diff --git a/debian/postinst b/debian/postinst
index b9630b525..76d826357 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -6,28 +6,7 @@ set -e
# rebuilding all wikis.
firstcompat=1.1
-wikilist=/etc/ikiwiki/wikilist
-
-processline () {
- user="$1"
- setup="$2"
-
- if [ -z "$user" ] || [ -z "$setup" ]; then
- echo "parse failure in /etc/ikiwiki/wikilist, line: '$user $setup'" >&2
- exit 1
- fi
-
- if [ ! -f "$setup" ]; then
- echo "warning: $setup specified in /etc/ikiwiki/wikilist does not exist, skipping" >&2
- else
- echo "Rebuilding $setup as user $user ..."
- su "$user" -c "ikiwiki -setup $setup"
- fi
-}
-
-if [ "$1" = configure ] && [ -e $wikilist ] && \
+if [ "$1" = configure ] && \
dpkg --compare-versions "$2" lt "$firstcompat"; then
- grep -v '^#' $wikilist | grep -v '^$' | while read line; do
- processline $line
- done
+ ikiwiki-mass-rebuild
fi