build(controller): added in drive locations
This commit is contained in:
@@ -14,7 +14,7 @@ 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
|
# 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
|
# 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 = @(
|
$Plants = @(
|
||||||
@{ Server = "usmcd1vms036"; Token = "test3"; Remote_Path = "E$\LST" }
|
@{ Server = "usmcd1vms036"; Token = "test3"; Remote_Path = "E$\LST" }
|
||||||
@@ -114,7 +114,7 @@ if ($PlantToUpdate -ne "all") {
|
|||||||
|
|
||||||
# Checking to make sure the server is up and online
|
# Checking to make sure the server is up and online
|
||||||
Write-Output "Checking if $($Token) is online to update."
|
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) {
|
if (-not $pingResult) {
|
||||||
Write-Output "Server $($PlantToUpdate), token $($Token) is NOT reachable. Exiting script."
|
Write-Output "Server $($PlantToUpdate), token $($Token) is NOT reachable. Exiting script."
|
||||||
|
|||||||
Reference in New Issue
Block a user