Fix Mux as env variable.

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

No files matched your search

+1 -1
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} "