1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-10-30 23:37:45 +02:00

Container executions now load the user's environment.

This commit is contained in:
David Steele
2017-02-16 17:18:48 -05:00
parent 2d7d9626bb
commit ac7ff755b3
5 changed files with 21 additions and 7 deletions

View File

@@ -971,16 +971,16 @@ sub sectionChildProcess
$self->{oManifest}->variableSet("host-$$hCacheKey{name}-ip", $oHost->{strIP}, true);
$$hCacheValue{ip} = $oHost->{strIP};
# Execute cleanup commands
# Add to the host group
my $oHostGroup = hostGroupGet();
$oHostGroup->hostAdd($oHost);
# Execute initialize commands
foreach my $oExecute ($oChild->nodeList('execute', false))
{
$self->execute($oSection, $$hCacheKey{name}, $oExecute, $iDepth + 1, false);
}
# Add to the host group
my $oHostGroup = hostGroupGet();
$oHostGroup->hostAdd($oHost);
$self->cachePush($strCacheType, $hCacheKey, $hCacheValue);
}
}