home · contact · privacy
Redo-ize wiki ersatz.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 11 Sep 2016 07:52:05 +0000 (09:52 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 11 Sep 2016 07:52:05 +0000 (09:52 +0200)
jessie_postinstall.sh
systemfiles/post-update

index 6a5af271e128cfc53fa444e411a19c9d6d5351ee..cd3d00c611b92b31ca4a226834ed307bf88ebe7b 100755 (executable)
@@ -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
index 51742fb57d95e716c25370596a12cbb10135fbc2..c1aa4d2eb195818cf9f797d750d8fd6376750a46 100755 (executable)
@@ -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