Only try to copy keys & config if they have been uploaded
This commit is contained in:
parent
1ddef49185
commit
fc3a2106fd
|
@ -1,8 +1,16 @@
|
||||||
# Copy minion keys & config to correct location
|
# Copy minion keys & config to correct location
|
||||||
New-Item c:\salt\conf\pki\minion\ -ItemType directory | out-null
|
New-Item c:\salt\conf\pki\minion\ -ItemType directory | out-null
|
||||||
cp C:\tmp\minion.pem C:\salt\conf\pki\minion\
|
|
||||||
cp C:\tmp\minion.pub C:\salt\conf\pki\minion\
|
# Check if minion keys have been uploaded
|
||||||
cp C:\tmp\minion C:\salt\conf\
|
if (Test-Path C:\tmp\minion.pem) {
|
||||||
|
cp C:\tmp\minion.pem C:\salt\conf\pki\minion\
|
||||||
|
cp C:\tmp\minion.pub C:\salt\conf\pki\minion\
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check if minion config has been uploaded
|
||||||
|
if (Test-Path C:\tmp\minion) {
|
||||||
|
cp C:\tmp\minion C:\salt\conf\
|
||||||
|
}
|
||||||
|
|
||||||
# Detect architecture
|
# Detect architecture
|
||||||
if ([IntPtr]::Size -eq 4) {
|
if ([IntPtr]::Size -eq 4) {
|
||||||
|
|
Loading…
Reference in New Issue