From 1ebdcd611d1724feedb23f9de854819ec5499c9f Mon Sep 17 00:00:00 2001 From: David Steele Date: Tue, 8 Oct 2024 10:28:01 +0300 Subject: [PATCH] Use output path for temp config files during documentation build. Putting the files in the user's home directory was too Linux-centric. --- doc/lib/pgBackRestDoc/Common/DocExecute.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/lib/pgBackRestDoc/Common/DocExecute.pm b/doc/lib/pgBackRestDoc/Common/DocExecute.pm index 695166d34..88580b74d 100644 --- a/doc/lib/pgBackRestDoc/Common/DocExecute.pm +++ b/doc/lib/pgBackRestDoc/Common/DocExecute.pm @@ -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})