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
This commit is contained in:
jbjohnso 2008-03-05 16:11:20 +00:00
parent 1d0ca14c3e
commit c579949dfa

View File

@ -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