fix: try to use old docker-compose

This commit is contained in:
Andras Bacsai
2023-09-18 13:14:05 +02:00
parent 1093294f06
commit c8ba98b93d
2 changed files with 7 additions and 4 deletions

View File

@@ -16,9 +16,12 @@ class CheckConfiguration
"cat $proxy_path/docker-compose.yml",
], $server, false);
if ($reset || is_null($proxy_configuration)) {
if ($reset || !$proxy_configuration || is_null($proxy_configuration)) {
$proxy_configuration = Str::of(generate_default_proxy_configuration($server))->trim()->value;
}
if (!$proxy_configuration || is_null($proxy_configuration)) {
throw new \Exception("Could not generate proxy configuration");
}
return $proxy_configuration;
}
}