We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d3ef0 commit 8b7f2d1Copy full SHA for 8b7f2d1
1 file changed
src/install.ps1
@@ -19,7 +19,7 @@ $out = Get-LocalUser -Name $userName -ErrorAction SilentlyContinue
19
if($null -eq $out)
20
{
21
Write-Host "--- Adding local user '$userName' for patroni service ---" -ForegroundColor blue
22
- $Password = -join ((65..90) + (97..122) | Get-Random -Count 8 | % {[char]$_})
+ $Password = -join (("a".."z")+("1".."9")+("A".."Z")+("!"..".") | Get-Random -Count 8)
23
$SecurePassword = ConvertTo-SecureString $Password -AsPlainText -Force
24
New-LocalUser $userName -Password $SecurePassword -Description "Patroni service account"
25
$ConfFile = 'patroni\patroni_service.xml'
0 commit comments