[debian-edu-commits] debian-edu/ 01/02: Adjust etc/X11/Xsession.d/09debian-edu-missing-home to make the script work with kdm now setting $HOME=/ if the user's home directory isn't available at login time (and before the script is executed).

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Thu Jan 1 23:22:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch master
in repository debian-edu-config.

commit b0b54e0be073dc892d4556be4fed05ee923bd269
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Fri Jan 2 00:20:07 2015 +0100

    Adjust etc/X11/Xsession.d/09debian-edu-missing-home to make the
    script work with kdm now setting $HOME=/ if the user's home
    directory isn't available at login time (and before the script is
    executed).
---
 debian/changelog                             | 9 +++++++++
 etc/X11/Xsession.d/09debian-edu-missing-home | 8 ++++----
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f8b048f..7ca328a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+debian-edu-config (1.816) UNRELEASED; urgency=medium
+
+  * Adjust etc/X11/Xsession.d/09debian-edu-missing-home to make the
+    script work with kdm now setting $HOME=/ if the user's home
+    directory isn't available at login time (and before the script is
+    executed).
+
+ -- Wolfgang Schweer <wschweer at arcor.de>  Thu, 01 Jan 2015 23:26:29 +0100
+
 debian-edu-config (1.815) unstable; urgency=medium
 
   [ Debconf translation updates ]
diff --git a/etc/X11/Xsession.d/09debian-edu-missing-home b/etc/X11/Xsession.d/09debian-edu-missing-home
index e348bf7..ae74cdd 100755
--- a/etc/X11/Xsession.d/09debian-edu-missing-home
+++ b/etc/X11/Xsession.d/09debian-edu-missing-home
@@ -5,14 +5,14 @@
 if [ -r /etc/debian-edu/config ] ; then
     . /etc/debian-edu/config
     if echo "$PROFILE" | egrep -q 'Workstation|Thin-Client-Server|Minimal' ; then
-	if [ ! -d $HOME ] ; then
+	if [ ! -d $HOME -o / = "$HOME" ] ; then
 	    cat <<EOF | \
 		xmessage -buttons Understood:0 -timeout 30 -center -file - 
-Missing user home directory $HOME.
+Missing user home directory.
 
-Check if the current computer DNS name in the NIS netgroup
+Check if the current computer DNS name is in the NIS netgroup
 workstation-hosts and authorized to mount the home directories from
-the NFS server.  This is done using Gosa, http://www/gosa/ .
+the NFS server.  This is done using Gosa, https://www/gosa/ .
 EOF
 	    exit 1
 	fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list