Skip to content

Commit

Permalink
Add comments. (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyKoltsov1997 committed Nov 24, 2023
1 parent 52f757f commit 6e11287
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions context/run-agent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 6e11287

Please sign in to comment.