This commit is contained in:
Freddy Kristiansen 2020-07-28 21:27:31 +02:00
Родитель 0dc370766c
Коммит 67bdec1f0b
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -53,9 +53,9 @@ param
[string] $nchBranch = ""
)
$verbosePreference = "SilentlyContinue"
$warningPreference = 'Continue'
$errorActionPreference = 'Stop'
$verbosePreference = "SilentlyContinue"
$warningPreference = 'Continue'
$errorActionPreference = 'Stop'
function Get-VariableDeclaration([string]$name) {
$var = Get-Variable -Name $name
@ -144,6 +144,7 @@ if (Test-Path $settingsScript) {
Get-VariableDeclaration -name "RequestToken" | Add-Content $settingsScript
Get-VariableDeclaration -name "CreateStorageQueue" | Add-Content $settingsScript
Get-VariableDeclaration -name "AddTraefik" | Add-Content $settingsScript
Get-VariableDeclaration -name "nchBranch" | Add-Content $settingsScript
$passwordKey = New-Object Byte[] 16
[Security.Cryptography.RNGCryptoServiceProvider]::Create().GetBytes($passwordKey)