fix generating keys for user wipes out credentials for root

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-08-18 11:35:47 +00:00
parent fe60641a64
commit 752cbd0f1a

View File

@ -25,7 +25,7 @@ if [ -z "$2" ]; then
if [ -x /usr/bin/getent ];then
USERHOME=`getent passwd $1|awk -F: '{print $6}'`
else
USERHOME=`lsuser -a home root | cut -d'=' -f2`
USERHOME=`grep ^$1: /etc/passwd | cut -d: -f6`
fi
else
CNA="$1"