]> Zhao Yanbai Git Server - minix.git/commitdiff
fix installation of home directories in setup.sh
authorDavid van Moolenbroek <david@minix3.org>
Tue, 23 Jun 2009 13:40:32 +0000 (13:40 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 23 Jun 2009 13:40:32 +0000 (13:40 +0000)
commands/scripts/setup.sh

index e8b7206a8b2a4898f0c86733fdc8c31dd85f412b..e0fb1ca9386aba9bcc20591ae3fba69389daaf77 100755 (executable)
@@ -572,11 +572,12 @@ bios="`echo $primary | sed -e 's/d./dX/g' -e 's/c.//g'`"
 if [ ! "$auto" = "r" ]
 then   if mount /dev/$home /home 2>/dev/null
        then    for u in bin ast
-               do      if mkdir ~$u
-                       then    echo " * Creating home directory for $u in ~$u"
-                               cpdir /usr/ast ~$u
-                               chown -R $u:operator ~$u
-                       else    echo " * Couldn't create ~$u"
+               do      h=`eval echo "~$u"`
+                       if mkdir $h
+                       then    echo " * Creating home directory for $u in $h"
+                               cpdir /usr/ast $h
+                               chown -R $u:operator $h
+                       else    echo " * Couldn't create $h"
                        fi
                done
                umount /dev/$home