home · contact · privacy
Improve nginx and IRC logs integration.
[config] / jessie_postinstall.sh
index 000f8e41b2a1ef37402ccad3d095b6bdb1d47303..821b4b3f76bf7057f2194f978f24e92151030821 100755 (executable)
@@ -222,8 +222,7 @@ if [ "$1" = "server" ]; then
         # Set up htwtxt environment.
         apt-get -y install screen nginx
         apt-get -y -t jessie-backports install golang
-        su - plom -c 'git clone '\
-'https://github.com/plomlompom/htwtxt $GOPATH/src/htwtxt'
+        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
@@ -240,6 +239,8 @@ if [ "$1" = "server" ]; then
         cp config/systemfiles/plomlombot.service \
             /etc/systemd/system/plomlombot.service
         systemctl enable /etc/systemd/system/plomlombot.service
+        mkdir /var/www/irclogs_zrolaps/
+        touch /var/www/password_irclogs_zrolaps
     fi
 
 elif [ "$1" = "thinkpad" ]; then