home · contact · privacy
More lenient directory creation.
[config] / jessie_postinstall.sh
index 06d95f2275dd967673676a91e9ad5dbc6f1fe8c5..76a75f6cd266a8dfc39b7edbb1cb625bd0fd9cd4 100755 (executable)
@@ -219,13 +219,14 @@ if [ "$1" = "server" ]; then
 
     elif [ "$2" = "public" ]; then
         # Set up twtxt environment.
+        apt-get -y install screen
         apt-get -y -t jessie-backports install golang
         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 ~/htwtxt'
+        su - plom -c 'mkdir -p ~/htwtxt'
     fi
 
 elif [ "$1" = "thinkpad" ]; then