Fix psh to update homedirectory in event of sudo

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11946 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-03-22 13:52:39 +00:00
parent 13765372a6
commit 492305799b

View File

@ -44,11 +44,13 @@ if ($::NONODECHECK) {
@nodes=split(/,/, $noderange);
}
else {
my @user = getpwuid($>);
my $homedir=$user[7];
my $client = IO::Socket::SSL->new(
PeerAddr=>$xcathost,
SSL_key_file=>$ENV{HOME}."/.xcat/client-cred.pem",
SSL_cert_file=>$ENV{HOME}."/.xcat/client-cred.pem",
SSL_ca_file => $ENV{HOME}."/.xcat/ca.pem",
SSL_key_file=>$homedir."/.xcat/client-cred.pem",
SSL_cert_file=>$homedir."/.xcat/client-cred.pem",
SSL_ca_file => $homedir."/.xcat/ca.pem",
SSL_use_cert => 1,
#SSL_verify_mode => 1,
);