From d7e10ac2a6008e1454b3649ad99c4d5891e724ed Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 2 Oct 2009 17:08:04 +0000 Subject: [PATCH] change the setup of USERHOME to use lsuser on AIX, the old grep caused the rm -rf / if two root entries in the /etc/passwd file git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4287 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/scripts/setup-local-client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/scripts/setup-local-client.sh b/xCAT-server/share/xcat/scripts/setup-local-client.sh index 617ba6fea..cf6afda21 100755 --- a/xCAT-server/share/xcat/scripts/setup-local-client.sh +++ b/xCAT-server/share/xcat/scripts/setup-local-client.sh @@ -25,7 +25,7 @@ if [ -z "$2" ]; 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=`lsuser -a home root | cut -d'=' -f2` fi else CNA="$1"