Complete lab2 grade 4 implementation and report
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
$envPath = Join-Path $repoRoot '.env'
|
||||
if (-not (Test-Path -LiteralPath $envPath)) {
|
||||
Copy-Item -LiteralPath (Join-Path $repoRoot '.env.example') -Destination $envPath
|
||||
Write-Output 'Local .env created (non-secret session TTL).'
|
||||
} else {
|
||||
Write-Output 'Existing .env preserved.'
|
||||
}
|
||||
|
||||
$secretsDirectory = Join-Path $repoRoot 'secrets'
|
||||
$passwordPath = Join-Path $secretsDirectory 'postgres_password.txt'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user