build(controller): added in drive locations
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user