[X2Go-Commits] [live-build-x2go] 92/108: we need to add the user ("user" or "x2gothinclient") to the group tty early on, to allow on-screen logging on tty8 and tty9
git-admin at x2go.org
git-admin at x2go.org
Wed Mar 20 22:13:24 CET 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch feature/openbox
in repository live-build-x2go.
commit 1d2db69988f05508e7abd70754cb30ea4881abf0
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Sat Jan 19 19:58:54 2019 +0000
we need to add the user ("user" or "x2gothinclient") to the group tty early on, to allow on-screen logging on tty8 and tty9
---
.../lib/live/config/2210-adduser2tty | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/config/includes.chroot/lib/live/config/2210-adduser2tty b/config/includes.chroot/lib/live/config/2210-adduser2tty
new file mode 100755
index 0000000..9132cc8
--- /dev/null
+++ b/config/includes.chroot/lib/live/config/2210-adduser2tty
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+AddUser2TTY ()
+{
+
+# Output startup message
+#
+echo -n " adduser2tty"
+
+# this is so that we can log to tty8 (status) and tty9 (debug)
+if [ -n "$(getent passwd user 2>/dev/null)" ] ; then
+ adduser user tty
+elif [ -n "$(getent passwd x2gothinclient 2>/dev/null)" ] ; then
+ adduser x2gothinclient tty
+else
+ : # NOP
+fi
+
+}
+
+AddUser2TTY
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list