aboutsummaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-05 20:48:20 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-05-05 20:48:20 +0000
commitdd7a38147179a59bff9dffd824b265862aa1a59e (patch)
treed3ac7e6d47a83a76a90c74a89ba3009a105a8492 /debian/postinst
parent626751068b6d002183046f3e3e76eb3b9040fa6b (diff)
downloadikiwiki-dd7a38147179a59bff9dffd824b265862aa1a59e.tar
ikiwiki-dd7a38147179a59bff9dffd824b265862aa1a59e.tar.gz
* Add ikiwiki-mass-rebuild script, ripped out of the postinst.
* Add some new config items to the estseek.conf template, which are needed by hyperestraier 1.2.3.
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