From c579949dfa93cd83f435ec6db6060cdfd12755c2 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 5 Mar 2008 16:11:20 +0000 Subject: [PATCH] Fix setup-local-client.sh script to correctly detect getent and be more picky on the AIX workaround. AIX workaround should have head, but I won't try that without the syntax confirmed on AIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/scripts/setup-local-client.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server-2.0/share/xcat/scripts/setup-local-client.sh b/xCAT-server-2.0/share/xcat/scripts/setup-local-client.sh index ec41a3b18..c8f691f99 100755 --- a/xCAT-server-2.0/share/xcat/scripts/setup-local-client.sh +++ b/xCAT-server-2.0/share/xcat/scripts/setup-local-client.sh @@ -12,10 +12,10 @@ fi CNA="$*" # getent doesn't exist on AIX -if [ -x getent ];then +if [ -x /usr/bin/getent ];then USERHOME=`getent passwd $1|awk -F: '{print $6}'` else - USERHOME=`grep ^$1 /etc/passwd | cut -d: -f6` + USERHOME=`grep ^$1: /etc/passwd | cut -d: -f6` fi XCATCADIR=$XCATDIR/ca