From 841a85803e6b5e383264b2d44c502973cffc29cb Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 11 Sep 2016 09:52:05 +0200
Subject: [PATCH] Redo-ize wiki ersatz.

---
 jessie_postinstall.sh   | 10 ++++++++--
 systemfiles/post-update |  3 ++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh
index 6a5af27..cd3d00c 100755
--- a/jessie_postinstall.sh
+++ b/jessie_postinstall.sh
@@ -192,7 +192,7 @@ if [ "$1" = "server" ]; then
     newaliases
     service postfix restart
     if [ "$2" = "personal" ]; then
-    apt-get -y install getmail4 procmail
+        apt-get -y install getmail4 procmail
     fi
 
     # Set up regular system update reminder.
@@ -266,7 +266,13 @@ if [ "$1" = "server" ]; then
         su - plom -c 'git init --bare /home/plom/lifelog.git'
         su - plom -c 'cp ~/config/systemfiles/post-update ~/lifelog.git/hooks/'
         su - plom -c 'chmod a+x /home/plom/lifelog.git/hooks/post-update'
-        apt-get -y install pandoc
+
+        # Install website generator tools
+        apt-get -y install pandoc wget
+        wget http://news.dieweltistgarnichtso.net/bin/archives/redo-sh.tar.gz
+        tar -oxzf redo-sh.tar.gz -C /usr/local
+        rm redo-sh.tar.gz
+        apt-get --purge autoremove wget
     fi
 
 elif [ "$1" = "thinkpad" ]; then
diff --git a/systemfiles/post-update b/systemfiles/post-update
index 51742fb..c1aa4d2 100755
--- a/systemfiles/post-update
+++ b/systemfiles/post-update
@@ -1,4 +1,5 @@
 #!/bin/sh
 LIFELOGDIR=/home/plom/lifelog
 GIT_WORK_TREE=$LIFELOGDIR git checkout -f
-find $LIFELOGDIR -name "*.rst" -type f -exec sh -c 'pandoc -s -f rst --mathml -t html5 $0 > ${0%.rst}.html' {} \;
+cd $LIFELOGDIR
+redo
-- 
2.30.2