From 0832ddd36fa7fc82bad8cae49e3ab474dbfd277c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 31 Mar 2016 01:06:02 +0200 Subject: [PATCH] Fix plomlombot server scripting. --- bin/plomlombot.sh | 3 +++ jessie_postinstall.sh | 2 +- systemfiles/plomlombot.service | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 bin/plomlombot.sh diff --git a/bin/plomlombot.sh b/bin/plomlombot.sh new file mode 100755 index 0000000..3ee9073 --- /dev/null +++ b/bin/plomlombot.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd ~/plomlombot-irc +./run.sh "#zrolaps" diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 654e7ac..dfe3643 100755 --- a/jessie_postinstall.sh +++ b/jessie_postinstall.sh @@ -233,7 +233,7 @@ if [ "$1" = "server" ]; then systemctl enable /etc/systemd/system/htwtxt_restart_reminder.service # Set up plomlombot. - apt-get -y python3 python3-venv python3-pip + apt-get -y install 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 \ diff --git a/systemfiles/plomlombot.service b/systemfiles/plomlombot.service index c9028bd..cc666c9 100644 --- a/systemfiles/plomlombot.service +++ b/systemfiles/plomlombot.service @@ -6,7 +6,7 @@ Description=plomlombot screen [Service] Type=forking User=plom -ExecStart=/bin/sh -c 'screen -d -m ~/plomlombot-irc/run.sh "#zrolaps"' +ExecStart=/bin/sh -c 'screen -d -m ~/config/bin/plomlombot.sh' [Install] WantedBy=multi-user.target -- 2.30.2