1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-04-15 11:36:40 +02: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:
David Steele 2024-10-08 10:28:01 +03:00
parent b3ca2e3482
commit 1ebdcd611d

View File

@ -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
$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");
}
my $strLocalFile = '/home/' . DOC_USER . '/data/postgresql.conf';
my $strLocalFile = abs_path(dirname($0)) . '/output/postgresql.conf';
$oHost->copyFrom($$hCacheKey{file}, $strLocalFile);
if (!defined(${$self->{'pg-config'}}{$strHostName}{$$hCacheKey{file}}{base}) && $self->{bExe})