home · contact · privacy
s/lifelog/zettel/g
[config] / jessie_postinstall.sh
index 63f39ad85186c8a10995f9d40283a1b089605b2c..a536eee24d8c215ff1c4b626eb402a0de8abd862 100755 (executable)
@@ -26,7 +26,7 @@ if [ "$3" = "plomlompom.com" ]; then
 elif [ "$3" = "test.plomlompom.com" ]; then
     hostname="test.plomlompom"
 elif [ "$2" = "public" ]; then
-    hostname="twtxt.plomlompom"
+    hostname="htwtxt.plomlompom"
 elif [ "$2" = "X200s" ]; then
     hostname="X220s"
 elif [ "$2" = "T450s" ]; then
@@ -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.
@@ -225,7 +225,6 @@ if [ "$1" = "server" ]; then
         su - plom -c 'git clone https://github.com/plomlompom/htwtxt $GOPATH/src/htwtxt'
         su - plom -c 'go get htwtxt'
         path=`su - plom -c 'echo $GOPATH/bin/htwtxt'`
-        #setcap 'cap_net_bind_service=+ep' $path
         su - plom -c 'mkdir -p ~/htwtxt'
         cp config/systemfiles/htwtxt_restart_reminder.service \
             /etc/systemd/system/htwtxt_restart_reminder.service
@@ -252,6 +251,28 @@ if [ "$1" = "server" ]; then
         touch /var/www/password_irclogs_zrolaps
         ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/657eea42f86866f2954d39f92a6c71ff/logs/ /var/www/html/irclogs/nodrama.de
         touch /var/www/password_irclogs_nodrama_de
+        ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/a083c5d5efca3734294fa656692990b6/logs/ /var/www/html/irclogs/freakazoid
+        touch /var/www/password_irclogs_freakazoid
+
+        # Set up other web-served directories.
+        su - plom -c 'mkdir -p /home/plom/dump'
+        ln -s /home/plom/dump/ /var/www/html/dump
+        su - plom -c 'mkdir -p /home/plom/geheim'
+        ln -s /home/plom/geheim/ /var/www/html/geheim
+        su - plom -c 'mkdir -p /home/plom/lesekreis'
+        ln -s /home/plom/geheim/ /var/www/html/lesekreis
+        su - plom -c 'mkdir -p /home/plom/zettel'
+        ln -s /home/plom/zettel/ /var/www/html/zettel
+        su - plom -c 'git init --bare /home/plom/zettel.git'
+        su - plom -c 'cp ~/config/systemfiles/post-update ~/zettel.git/hooks/'
+        su - plom -c 'chmod a+x /home/plom/zettel.git/hooks/post-update'
+
+        # 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