You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +02:00 
			
		
		
		
	Remove mount and user from host cache-key because it can vary by system.
This commit is contained in:
		| @@ -29,7 +29,7 @@ use BackRestDoc::Common::DocManifest; | ||||
| #################################################################################################################################### | ||||
| # User that's building the docs | ||||
| #################################################################################################################################### | ||||
| use constant DOC_USER                                              => getpwuid($UID) . ''; | ||||
| use constant DOC_USER                                              => getpwuid($UID) eq 'root' ? 'ubuntu' : getpwuid($UID) . ''; | ||||
|  | ||||
| #################################################################################################################################### | ||||
| # CONSTRUCTOR | ||||
| @@ -769,7 +769,6 @@ sub hostKey | ||||
|     my $hCacheKey = | ||||
|     { | ||||
|         name => $self->{oManifest}->variableReplace($oHost->paramGet('name')), | ||||
|         user => $self->{oManifest}->variableReplace($oHost->paramGet('user')), | ||||
|         image => $self->{oManifest}->variableReplace($oHost->paramGet('image')), | ||||
|     }; | ||||
|  | ||||
| @@ -783,11 +782,6 @@ sub hostKey | ||||
|         $$hCacheKey{os} = $self->{oManifest}->variableReplace($oHost->paramGet('os')); | ||||
|     } | ||||
|  | ||||
|     if (defined($oHost->paramGet('mount', false))) | ||||
|     { | ||||
|         $$hCacheKey{mount} = $self->{oManifest}->variableReplace($oHost->paramGet('mount')); | ||||
|     } | ||||
|  | ||||
|     # Return from function and log return values if any | ||||
|     return logDebugReturn | ||||
|     ( | ||||
| @@ -971,8 +965,11 @@ sub sectionChildProcess | ||||
|                 executeTest("mkdir -p ~/data/$$hCacheKey{name}/etc"); | ||||
|  | ||||
|                 my $oHost = new pgBackRestTest::Common::HostTest( | ||||
|                     $$hCacheKey{name}, "doc-$$hCacheKey{name}", $$hCacheKey{image}, $$hCacheKey{user}, $$hCacheKey{os}, | ||||
|                     defined($$hCacheKey{mount}) ? [$$hCacheKey{mount}] : undef, $$hCacheKey{option}); | ||||
|                     $$hCacheKey{name}, "doc-$$hCacheKey{name}", $$hCacheKey{image}, | ||||
|                     $self->{oManifest}->variableReplace($oChild->paramGet('user')), $$hCacheKey{os}, | ||||
|                     defined($oChild->paramGet('mount', false)) ? | ||||
|                         [$self->{oManifest}->variableReplace($oChild->paramGet('mount'))] : undef, | ||||
|                     $$hCacheKey{option}); | ||||
|  | ||||
|                 $self->{host}{$$hCacheKey{name}} = $oHost; | ||||
|                 $self->{oManifest}->variableSet("host-$$hCacheKey{name}-ip", $oHost->{strIP}, true); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user