Files
inquiry_robot/deploy/_remote_check_admin_ready.ps1
T

14 lines
513 B
PowerShell

$ErrorActionPreference = "Continue"
Write-Output "=== admin-secrets.env? ==="
Test-Path "E:\wwwroot\ops\admin-secrets.env"
if (Test-Path "E:\wwwroot\ops\admin-secrets.env") {
Get-Content "E:\wwwroot\ops\admin-secrets.env" | ForEach-Object {
if ($_ -match '^([^=]+)=') { $matches[1] }
}
}
Write-Output "=== sql files ==="
Get-ChildItem "E:\wwwroot\ops\sql" | Select-Object Name, Length
Write-Output "=== secrets json exists ==="
Test-Path "E:\wwwroot\ops\inquiry_robot_db_secrets.json"
Write-Output "DONE"