You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-30 19:23:04 +03:00
Use output path for temp config files during documentation build.
Putting the files in the user's home directory was too Linux-centric.
This commit is contained in:
@ -557,7 +557,7 @@ sub backrestConfig
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $strLocalFile = '/home/' . DOC_USER . '/data/pgbackrest.conf';
|
my $strLocalFile = abs_path(dirname($0)) . '/output/pgbackrest.conf';
|
||||||
|
|
||||||
# Save the ini file
|
# Save the ini file
|
||||||
$self->{oManifest}->storage()->put($strLocalFile, iniRender($self->{config}{$strHostName}{$$hCacheKey{file}}, true));
|
$self->{oManifest}->storage()->put($strLocalFile, iniRender($self->{config}{$strHostName}{$$hCacheKey{file}}, true));
|
||||||
@ -655,7 +655,7 @@ sub postgresConfig
|
|||||||
confess &log(ERROR, "cannot configure postgres on host ${strHostName} because the host does not exist");
|
confess &log(ERROR, "cannot configure postgres on host ${strHostName} because the host does not exist");
|
||||||
}
|
}
|
||||||
|
|
||||||
my $strLocalFile = '/home/' . DOC_USER . '/data/postgresql.conf';
|
my $strLocalFile = abs_path(dirname($0)) . '/output/postgresql.conf';
|
||||||
$oHost->copyFrom($$hCacheKey{file}, $strLocalFile);
|
$oHost->copyFrom($$hCacheKey{file}, $strLocalFile);
|
||||||
|
|
||||||
if (!defined(${$self->{'pg-config'}}{$strHostName}{$$hCacheKey{file}}{base}) && $self->{bExe})
|
if (!defined(${$self->{'pg-config'}}{$strHostName}{$$hCacheKey{file}}{base}) && $self->{bExe})
|
||||||
|
Reference in New Issue
Block a user