From 1c2241ac775479aa624de08fded54dc2c9b44f87 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 31 Mar 2016 00:33:07 +0200 Subject: [PATCH] Add plomlombot to public server. --- jessie_postinstall.sh | 9 +++++++++ systemfiles/plomlombot.service | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 systemfiles/plomlombot.service diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 5305c14..654e7ac 100755 --- a/jessie_postinstall.sh +++ b/jessie_postinstall.sh @@ -218,6 +218,7 @@ if [ "$1" = "server" ]; then config/bin/simplemail.sh config/mails/server_postinstall_finished elif [ "$2" = "public" ]; then + # Set up twtxt environment. apt-get -y install screen apt-get -y -t jessie-backports install golang @@ -230,6 +231,14 @@ if [ "$1" = "server" ]; then cp config/systemfiles/htwtxt_restart_reminder.service \ /etc/systemd/system/htwtxt_restart_reminder.service systemctl enable /etc/systemd/system/htwtxt_restart_reminder.service + + # Set up plomlombot. + apt-get -y python3 python3-venv python3-pip + su - plom -c 'cd && git clone http://github.com/plomlompom/plomlombot-irc' + su - plom -c 'mkdir -p ~/plomlombot_db' + cp config/systemfiles/plomlombot.service \ + /etc/systemd/system/plomlombot.service + systemctl enable /etc/systemd/system/plomlombot.service fi elif [ "$1" = "thinkpad" ]; then diff --git a/systemfiles/plomlombot.service b/systemfiles/plomlombot.service new file mode 100644 index 0000000..c9028bd --- /dev/null +++ b/systemfiles/plomlombot.service @@ -0,0 +1,12 @@ +# /etc/systemd/system/weechat.service + +[Unit] +Description=plomlombot screen + +[Service] +Type=forking +User=plom +ExecStart=/bin/sh -c 'screen -d -m ~/plomlombot-irc/run.sh "#zrolaps"' + +[Install] +WantedBy=multi-user.target -- 2.30.2