home · contact · privacy
Fix plomlombot server scripting.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 30 Mar 2016 23:06:02 +0000 (01:06 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 30 Mar 2016 23:06:02 +0000 (01:06 +0200)
bin/plomlombot.sh [new file with mode: 0755]
jessie_postinstall.sh
systemfiles/plomlombot.service

diff --git a/bin/plomlombot.sh b/bin/plomlombot.sh
new file mode 100755 (executable)
index 0000000..3ee9073
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd ~/plomlombot-irc
+./run.sh "#zrolaps"
index 654e7acc0aac513fff02c0a2ad76787be3ecf83d..dfe3643ed1e96210c99386d0d3487445f217c801 100755 (executable)
@@ -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 \
index c9028bd49bf31087a8bb3c6438156fab1e4b1549..cc666c97a94e8f7c25958bc68b99031293461ce4 100644 (file)
@@ -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