From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 28 Sep 2015 23:11:18 +0000 (+0200)
Subject: Add screen and irssi screen session to server postinstall script.
X-Git-Url: https://plomlompom.com/repos/condition?a=commitdiff_plain;h=86bf3e30a4c6f2fff0bccb51c45b0f653d32ca01;p=config

Add screen and irssi screen session to server postinstall script.
---

diff --git a/jessie_start_server.sh b/jessie_start_server.sh
index 407af5c..fe08c0e 100755
--- a/jessie_start_server.sh
+++ b/jessie_start_server.sh
@@ -78,8 +78,13 @@ su plom -c 'mkdir -p /home/plom/.vimbackups/'
 # Set up openssh-server.
 apt-get -y install openssh-server
 
+# Set up screen.
+apt-get -y install screen
+
 # Set up irssi.
 apt-get -y install irssi
+su plom -c 'screen -S irssi'
+su plom -c 'screen -S irssi -X stuff "irssi\n"'
 
 # Set up mail client system.
 apt-get -y install getmail4 procmail mutt