From 6e11287321fd092be8e125a45cb178e9e132740f Mon Sep 17 00:00:00 2001 From: Andrey Koltsov Date: Fri, 24 Nov 2023 19:00:19 +0100 Subject: [PATCH] Add comments. (#128) --- context/run-agent.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/context/run-agent.ps1 b/context/run-agent.ps1 index d95d37b06..bacd65935 100644 --- a/context/run-agent.ps1 +++ b/context/run-agent.ps1 @@ -25,6 +25,8 @@ function unquote($value) { return $value -Replace '""', '"' } +# Executes "agent configure" utility with the variables specified at container's start up: ... +# ... server url, name, token, etc. function reconfigure() { $options=@() fixDns @@ -44,9 +46,11 @@ function reconfigure() { configure $options } +# If buildAgent.dist.properties exist, saves it as buildAgent.properties (overwrites if exists) function prepare_conf() { Write-Host "Will prepare agent configuration" Get-ChildItem "${agentDist}/conf" -Recurse | ForEach-Object { + Write-Host ("Processing: " + $_.Name) if ($_.Name -eq "buildAgent.dist.properties") { Move-Item $_.FullName "${configDir}/buildAgent.properties" -Force } else {