Files
justice/www/html/Create Room/FIX-NOW.ps1
T
2026-05-27 08:02:22 +00:00

26 lines
842 B
PowerShell

$ErrorActionPreference = 'Stop'
$src = 'https://srv1361159.hstgr.cloud'
$root = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
$cr = Join-Path $root 'Create Room'
[System.Net.ServicePointManager]::CheckCertificateRevocationList = $false
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
function Save-Url($url, $path) {
Write-Host " $url"
Write-Host " -> $path"
try {
Invoke-WebRequest -Uri $url -OutFile $path -UseBasicParsing
} catch {
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($url, $path)
}
}
Write-Host 'Downloading...'
Save-Url "$src/app-base.js" (Join-Path $root 'app-base.js')
Save-Url "$src/Create%20Room/index.html" (Join-Path $cr 'index.html')
Write-Host ''
Write-Host 'Done. Open Create Room and Ctrl+Shift+R'
Read-Host 'Press Enter'