From 951581a29c416c024e9fe06c894d35a3382bdd38 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Tue, 23 Jun 2009 13:40:32 +0000 Subject: [PATCH] fix installation of home directories in setup.sh --- commands/scripts/setup.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index e8b7206a8..e0fb1ca93 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -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 -- 2.44.0