[debian-edu-commits] r82353 - branches/wheezy/debian-edu-config/debian

pere at alioth.debian.org pere at alioth.debian.org
Fri Sep 13 07:25:52 UTC 2013


Author: pere
Date: 2013-09-13 07:25:52 +0000 (Fri, 13 Sep 2013)
New Revision: 82353

Modified:
   branches/wheezy/debian-edu-config/debian/changelog
   branches/wheezy/debian-edu-config/debian/debian-edu-config.postinst
Log:
Only set owner for /var/opt/ltsp/swapfiles to the nbd user if the
user exist.  Fixes installation problem.

Modified: branches/wheezy/debian-edu-config/debian/changelog
===================================================================
--- branches/wheezy/debian-edu-config/debian/changelog	2013-09-13 07:02:31 UTC (rev 82352)
+++ branches/wheezy/debian-edu-config/debian/changelog	2013-09-13 07:25:52 UTC (rev 82353)
@@ -1,3 +1,11 @@
+debian-edu-config (1.716~svn82346) UNRELEASED; urgency=low
+
+  [ Petter Reinholdtsen ]
+  * Only set owner for /var/opt/ltsp/swapfiles to the nbd user if the
+    user exist.  Fixes installation problem.
+
+ -- Petter Reinholdtsen <pere at debian.org>  Fri, 13 Sep 2013 09:25:20 +0200
+
 debian-edu-config (1.716~svn82345) unstable; urgency=low
 
   [ Wolfgang Schweer ]

Modified: branches/wheezy/debian-edu-config/debian/debian-edu-config.postinst
===================================================================
--- branches/wheezy/debian-edu-config/debian/debian-edu-config.postinst	2013-09-13 07:02:31 UTC (rev 82352)
+++ branches/wheezy/debian-edu-config/debian/debian-edu-config.postinst	2013-09-13 07:25:52 UTC (rev 82353)
@@ -279,7 +279,7 @@
 
     if dpkg --compare-versions "$2" le "1.715"; then
 	swapfiles=/var/opt/ltsp/swapfiles
-	if [ -d $swapfiles ] ; then
+	if [ -d $swapfiles ] && getent passwd nbd > /dev/null ; then
 	    chmod 700 $swapfiles
 	    chown nbd:nbd $swapfiles
 	fi




More information about the debian-edu-commits mailing list