From 0deb64b53ae84f092fecc9460adab9f6613602d2 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 23 Mar 2012 12:55:42 +0000 Subject: [PATCH] Have rcons check and set $HOME since sudo won't give an accurate looking home directory git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/rcons | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index b52bd38f7..bc47ce3b6 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -1,4 +1,6 @@ #!/bin/sh +HOME=`getent passwd $(whoami)|cut -d: -f 6` +export HOME if [ -z "$1" ] || [ "$1" = "-h" ]; then echo "rcons - remotely accesses the serial console of a node" echo "rcons [conserver] [-f]"