From: Christian Heller Date: Wed, 30 Mar 2016 22:33:07 +0000 (+0200) Subject: Add plomlombot to public server. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/%27%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28escapeHTML%28span%5B2%5D%29%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28%27?a=commitdiff_plain;h=1c2241ac775479aa624de08fded54dc2c9b44f87;p=config Add plomlombot to public server. --- 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