From: Christian Heller Date: Wed, 30 Mar 2016 23:06:02 +0000 (+0200) Subject: Fix plomlombot server scripting. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bprefix%7D%7D/test?a=commitdiff_plain;h=0832ddd36fa7fc82bad8cae49e3ab474dbfd277c;p=config Fix plomlombot server scripting. --- 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