[maemo-commits] [maemo-commits] r15435 - projects/haf/trunk/osso-af-startup/debian

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Apr 16 09:21:40 EEST 2008
Author: schulhof
Date: 2008-04-16 09:21:39 +0300 (Wed, 16 Apr 2008)
New Revision: 15435

Modified:
   projects/haf/trunk/osso-af-startup/debian/changelog
   projects/haf/trunk/osso-af-startup/debian/preinst
Log:
  * Create user home directory if it's not there already. /I/ shouldn't have to do that


Modified: projects/haf/trunk/osso-af-startup/debian/changelog
===================================================================
--- projects/haf/trunk/osso-af-startup/debian/changelog	2008-04-16 06:20:42 UTC (rev 15434)
+++ projects/haf/trunk/osso-af-startup/debian/changelog	2008-04-16 06:21:39 UTC (rev 15435)
@@ -1,3 +1,9 @@
+osso-af-startup (1.53-3) unstable; urgency=low
+
+  * Create user home directory if it's not there already. /I/ shouldn't have to do that
+
+ -- Gabriel Schulhof <gabriel.schulhof at nokia.com>  Wed, 16 Apr 2008 09:19:34 +0300
+
 osso-af-startup (1.53-2) unstable; urgency=low
 
   * Move creation of ~user/first-boot-flag from postinst to new preinst, because

Modified: projects/haf/trunk/osso-af-startup/debian/preinst
===================================================================
--- projects/haf/trunk/osso-af-startup/debian/preinst	2008-04-16 06:20:42 UTC (rev 15434)
+++ projects/haf/trunk/osso-af-startup/debian/preinst	2008-04-16 06:21:39 UTC (rev 15435)
@@ -12,6 +12,13 @@
 
 if test "x$1" = "xinstall"; then
   # walk the user through initial configuration wizards
+
+  if ! test -d $HOME; then
+    mkdir -p $HOME
+    chmod 750 $HOME
+    chown $USER:$GROUP $HOME
+  fi
+
   touch $HOME/first-boot-flag
   chown $USER:$GROUP $HOME/first-boot-flag
 fi


More information about the maemo-commits mailing list