Initial import: Music_Server, MusicFree, catalog-sync
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
param(
|
||||
[switch]$SkipHealthCheck
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$RepoRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$DelegateScript = Join-Path $RepoRoot "scripts\deploy_to_nas.ps1"
|
||||
|
||||
if (-not (Test-Path -LiteralPath $DelegateScript)) {
|
||||
throw "Deploy script not found: $DelegateScript"
|
||||
}
|
||||
|
||||
$arguments = @(
|
||||
"-ExecutionPolicy", "Bypass",
|
||||
"-File", $DelegateScript
|
||||
)
|
||||
|
||||
if ($SkipHealthCheck) {
|
||||
$arguments += "-SkipHealthCheck"
|
||||
}
|
||||
|
||||
powershell @arguments
|
||||
exit $LASTEXITCODE
|
||||
Reference in New Issue
Block a user