startup.sh: Run screen(1) as admin, sudo(8) to ircbot user.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 2 Sep 2012 16:48:58 +0000 (17:48 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 2 Sep 2012 16:48:58 +0000 (17:48 +0100)
The `screen' package doesn't come setuid-root any more (almost certainly
for good reason) and so can't host multiuser sessions.  Don't even try.

startup.sh

index 392f6c8..3d31025 100755 (executable)
@@ -2,6 +2,6 @@
 set -e
 
 screen -d -m -S bots
-screen -X -S bots multiuser on
-screen -X -S bots acladd mdw,root
-screen -X -S bots screen -t blight ./blight-startup.tcl distorted
+screen -X -S bots \
+  screen -t blight \
+  sh -c 'sudo -u ircbot ./blight-startup.tcl distorted; sleep 60'