Update the Windows install.

This commit is contained in:
markjcrane
2018-01-03 01:13:29 -07:00
parent 4829f22abf
commit 74abcb8196
26 changed files with 655 additions and 484 deletions

View File

@@ -0,0 +1,15 @@
#includes
. .\resources\new-password.ps1
#Database Password
if ($env:PGPASSWORD) {
$database_password = $env:PGPASSWORD
}
if ($database_password -eq 'random') {
$database_password = New-Password 20
}
elseif ($database_password -eq '') {
$database_password = Read-Host -Prompt "Enter database superuser (postgres) password"
}
#Set DB password
$env:PGPASSWORD = "$database_password"