From 3b7138ddb7d0251aad67800ff8735a2d01646ba5 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 10 Sep 2025 12:43:00 -0500 Subject: [PATCH] build(controller): added in drive locations --- scripts/update-controllers.ps1 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/update-controllers.ps1 b/scripts/update-controllers.ps1 index cc46368..7fb1f66 100644 --- a/scripts/update-controllers.ps1 +++ b/scripts/update-controllers.ps1 @@ -14,15 +14,15 @@ param ( # example string to pass over, you must be in the script dir when you run this script. or it will fail to find the linked scripts # If we do not pass plant to update over it will auto do all plants if we want a specific plant we need to do like below -# .\update-controllers.ps1 -App_Path "C:\Users\matthes01\Documents\lst" -Token "test3" -BuildController no -PlantToUpdate "usmcd1vms006" -Remote_Path "E$\LST" +# .\update-controllers.ps1 -App_Path "C:\Users\matthes01\Documents\lst" -Token "test3" -BuildController yes -PlantToUpdate "usmcd1vms036" -Remote_Path "E$\LST" $Plants = @( - @{ Server = "usmcd1vms036"; Token = "test3"; Remote_Path = "E$\LST"} - @{ Server = "usmar1vms006"; Token = "usmar1" ; Remote_Path = "E$\LST"} + @{ Server = "usmcd1vms036"; Token = "test3"; Remote_Path = "E$\LST" } + @{ Server = "usmar1vms006"; Token = "usmar1" ; Remote_Path = "E$\LST" } @{ Server = "usbet1vms006"; Token = "usbet1"; Remote_Path = "E$\LST" } - @{ Server = "usbow1vms006"; Token = "usbow1" ; Remote_Path = "E$\LST"} - @{ Server = "usslc1vms006"; Token = "usslc1" ; Remote_Path = "E$\LST"} - @{ Server = "usstp1vms006"; Token = "usstp1" ; Remote_Path = "D$\LST"} + @{ Server = "usbow1vms006"; Token = "usbow1" ; Remote_Path = "E$\LST" } + @{ Server = "usslc1vms006"; Token = "usslc1" ; Remote_Path = "E$\LST" } + @{ Server = "usstp1vms006"; Token = "usstp1" ; Remote_Path = "D$\LST" } ) @@ -114,7 +114,7 @@ if ($PlantToUpdate -ne "all") { # Checking to make sure the server is up and online Write-Output "Checking if $($Token) is online to update." - $pingResult = Test-Connection -ComputerName $Server -Count 2 -Quiet + $pingResult = Test-Connection -ComputerName $PlantToUpdate -Count 2 -Quiet if (-not $pingResult) { Write-Output "Server $($PlantToUpdate), token $($Token) is NOT reachable. Exiting script."