Suppress stdout when creating secrets

- copies behaviour from bash installer

Signed-off-by: John McCabe <john@johnmccabe.net>
This commit is contained in:
John McCabe 2018-10-22 12:12:17 +01:00 committed by Alex Ellis
parent 785bd6d69b
commit cb4aa8f352

View File

@ -36,7 +36,7 @@ if (Get-Command docker -errorAction SilentlyContinue)
}
else
{
$user | docker secret create $user_secret -
$user | docker secret create $user_secret - | out-null
}
$password_secret = "basic-auth-password"
@ -47,7 +47,7 @@ if (Get-Command docker -errorAction SilentlyContinue)
}
else
{
$secret | docker secret create $password_secret -
$secret | docker secret create $password_secret - | out-null
Write-Host "[Credentials]"
Write-Host " username: admin"
Write-Host " password: $secret"