Fix psh to update homedirectory in event of sudo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11964 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0deb64b53a
commit
7bed33128a
@ -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,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user