From: Christian Heller Date: Sun, 11 Sep 2016 07:52:05 +0000 (+0200) Subject: Redo-ize wiki ersatz. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/%7B%7Btodo.comment%7D%7D?a=commitdiff_plain;h=841a85803e6b5e383264b2d44c502973cffc29cb;p=config Redo-ize wiki ersatz. --- 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