[debian-edu-commits] r81194 - in branches/wheezy/debian-edu-config: . debian etc/X11/Xsession.d
pere at alioth.debian.org
pere at alioth.debian.org
Thu Jun 27 11:32:33 UTC 2013
Author: pere
Date: 2013-06-27 11:32:33 +0000 (Thu, 27 Jun 2013)
New Revision: 81194
Added:
branches/wheezy/debian-edu-config/etc/X11/Xsession.d/09debian-edu-missing-home
Modified:
branches/wheezy/debian-edu-config/Makefile
branches/wheezy/debian-edu-config/debian/changelog
Log:
Add Xsession.d script to warn about missing home directory and
suggest that this might be fixed by adding the host to the
workstation-hosts NIS netgroup in Gosa.
Modified: branches/wheezy/debian-edu-config/Makefile
===================================================================
--- branches/wheezy/debian-edu-config/Makefile 2013-06-26 21:26:41 UTC (rev 81193)
+++ branches/wheezy/debian-edu-config/Makefile 2013-06-27 11:32:33 UTC (rev 81194)
@@ -90,6 +90,7 @@
bind/db.1.168.192.in-addr.arpa. \
X11/Xsession.d/05debian-edu-truncate-xerrorlog \
X11/Xsession.d/06debian-edu-iceweasel-ltsp \
+ X11/Xsession.d/09debian-edu-missing-home \
X11/Xsession.d/10debian-edu-one-login-per-host \
desktop-profiles/debian-edu-config.listing \
debian-edu/hd-warn.conf \
Modified: branches/wheezy/debian-edu-config/debian/changelog
===================================================================
--- branches/wheezy/debian-edu-config/debian/changelog 2013-06-26 21:26:41 UTC (rev 81193)
+++ branches/wheezy/debian-edu-config/debian/changelog 2013-06-27 11:32:33 UTC (rev 81194)
@@ -3,6 +3,9 @@
[ Petter Reinholdtsen ]
* Move kernel option set by debian-edu-hwsetup from /etc/grub.d/ to
/etc/default/grub, where it actually have effect.
+ * Add Xsession.d script to warn about missing home directory and
+ suggest that this might be fixed by adding the host to the
+ workstation-hosts NIS netgroup in Gosa.
-- Petter Reinholdtsen <pere at debian.org> Wed, 26 Jun 2013 22:38:07 +0200
Added: branches/wheezy/debian-edu-config/etc/X11/Xsession.d/09debian-edu-missing-home
===================================================================
--- branches/wheezy/debian-edu-config/etc/X11/Xsession.d/09debian-edu-missing-home (rev 0)
+++ branches/wheezy/debian-edu-config/etc/X11/Xsession.d/09debian-edu-missing-home 2013-06-27 11:32:33 UTC (rev 81194)
@@ -0,0 +1,20 @@
+#!/bin/sh
+# Give a clue to why the home directory is missing.
+
+# Should not update hostname on Main-Server, Roaming-Workstation and Standalone
+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
+ cat <<EOF | \
+ xmessage -buttons Understood:0 -timeout 30 -center -file -
+Missing user home directory $HOME.
+
+Check if the current computer DNS name 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/ .
+EOF
+ exit 1
+ fi
+ fi
+fi
Property changes on: branches/wheezy/debian-edu-config/etc/X11/Xsession.d/09debian-edu-missing-home
___________________________________________________________________
Added: svn:executable
+ *
More information about the debian-edu-commits
mailing list