Merge pull request #3611 from nextcloud/enh/noid/database-host

This commit is contained in:
Simon L 2023-10-30 15:09:33 +01:00 committed by GitHub
commit 1aa518d19c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -403,6 +403,9 @@ class DockerActionManager
} else {
$replacements[1] = '';
}
// Allow to get local ip-address of database container which allows to talk to it even in host mode (the container that requires this needs to be started first then)
} elseif ($out[1] === 'AIO_DATABASE_HOST') {
$replacements[1] = gethostbyname('nextcloud-aio-database');
} else {
$secret = $this->configurationManager->GetSecret($out[1]);
if ($secret === "") {