Skip to content

Commit

Permalink
Merge pull request #1705 from craddm/platform-path
Browse files Browse the repository at this point in the history
Improve handling of spaces in file paths
  • Loading branch information
craddm authored Jan 22, 2024
2 parents eed7df2 + 133b583 commit 310eca1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deployment/administration/SRE_SRD_Remote_Diagnostics.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if ($?) {

# Run remote diagnostic scripts
# -----------------------------
Invoke-Expression -Command "$(Join-Path $PSScriptRoot '..' 'secure_research_environment' 'setup' 'Run_SRE_SRD_Remote_Diagnostics.ps1') -shmId $shmId -sreId $sreId -ipLastOctet $ipLastOctet"
& $(Join-Path $PSScriptRoot '..' 'secure_research_environment' 'setup' 'Run_SRE_SRD_Remote_Diagnostics.ps1') -shmId $shmId -sreId $sreId -ipLastOctet $ipLastOctet


# Get LDAP secret from the Key Vault
Expand Down
2 changes: 1 addition & 1 deletion deployment/administration/SRE_Teardown.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $scriptPath = Join-Path $PSScriptRoot ".." "secure_research_environment" "setup"
if ($dryRun.IsPresent) {
Add-LogMessage -Level Info "SRE data would be removed from the SHM by running: $scriptPath -shmId $shmId -sreId $sreId"
} else {
Invoke-Expression -Command "$scriptPath -shmId $shmId -sreId $sreId"
& $scriptPath -shmId $shmId -sreId $sreId
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ foreach ($nsgName in $nsgs.Keys) {
# Ensure SRE is peered to correct mirror/proxy set
# ------------------------------------------------
# Unpeer any existing networks before (re-)establishing correct peering for SRE
Invoke-Expression -Command "$(Join-Path $PSScriptRoot Unpeer_SRE_Package_Repositories.ps1) -shmId $shmId -sreId $sreId"
& $(Join-Path $PSScriptRoot "Unpeer_SRE_Package_Repositories.ps1") -shmId $shmID -sreId $sreId
# Peer this SRE to the repository network
Add-LogMessage -Level Info "Ensuring SRE is peered to correct package repository..."
if (-not $config.sre.repositories.network.name) {
Expand Down Expand Up @@ -146,8 +146,7 @@ $null = Set-AzContext -SubscriptionId $config.sre.subscriptionName -ErrorAction

# Block external DNS queries
# --------------------------
Invoke-Expression -Command "$(Join-Path $PSScriptRoot "Configure_External_DNS_Queries.ps1") -shmId $shmId -sreId $sreId"

& $(Join-Path $PSScriptRoot "Configure_External_DNS_Queries.ps1") -shmId $shmId -sreId $sreId

# Switch back to original subscription
# ------------------------------------
Expand Down

0 comments on commit 310eca1

Please sign in to comment.