Fix Mux as env variable.

This commit is contained in:
Joao Patricio
2023-05-05 16:56:03 +01:00
parent 117ba360ac
commit 982f5beaf5
4 changed files with 6 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ if (!function_exists('generateSshCommand')) {
$delimiter = 'EOF-COOLIFY-SSH';
Storage::disk('local')->makeDirectory('.ssh');
$ssh_command = "ssh ";
if ($isMux) {
if ($isMux && config('coolify.mux_enabled')) {
$ssh_command .= '-o ControlMaster=auto -o ControlPersist=1m -o ControlPath=/var/www/html/storage/app/.ssh/ssh_mux_%h_%p_%r ';
}
$ssh_command .= "-i {$private_key_location} "