Fix issues with previous commit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15658 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ee48169642
commit
4b2e5beb12
@ -471,9 +471,9 @@ sub mkinstall
|
||||
print $shandle ":x64\r\n";
|
||||
print $shandle "%instdrv%\\postscripts\\upflagx64 %XCATD% 3002 next\r\n";
|
||||
print $shandle "GOTO END\r\n";
|
||||
print $shandle ":PSH\n";
|
||||
print $shandle "set mastername=$xcatsslname\n";
|
||||
print $shandle "set master=%XCATD%\n";
|
||||
print $shandle ":PSH\r\n";
|
||||
print $shandle "set mastername=$xcatsslname\r\n";
|
||||
print $shandle "set master=%XCATD%\r\n";
|
||||
print $shandle "mkdir x:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\xCAT\r\n";
|
||||
print $shandle "copy %instdrv%\\utils\\windows\\xCAT.* x:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\xCAT\r\n";
|
||||
print $shandle "powershell set-executionpolicy bypass CurrentUser\r\n";
|
||||
|
@ -2,7 +2,7 @@ $command=@{'command'='nextdestiny'}
|
||||
if (!(Test-Path HKCU:\Software\xCAT)) {
|
||||
mkdir HKCU:\Software\xCAT
|
||||
$certstore = New-Object System.Security.Cryptography.X509Certificates.X509Store("My","CurrentUser")
|
||||
$certstore.Open([System.Security.Cryptopgraphy.X509Certificates.OpenFlags]'Readwrite')
|
||||
$certstore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]'Readwrite')
|
||||
$cacert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("$env:instdrv\xcat\ca.pem")
|
||||
Set-ItemProperty HKCU:\Software\xCAT cacertthumb $cacert.thumbprint
|
||||
Set-ItemProperty HKCU:\Software\xCAT serveraddress $env:master
|
||||
|
Loading…
Reference in New Issue
Block a user