From: soufiane Date: Thu, 30 Nov 2023 09:34:15 +0000 (+0100) Subject: wip #6527 Modification commande sftp X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5e4af5995afc87e3d1dca9e20cdd0f8b5818de45;p=cubist_util.git wip #6527 Modification commande sftp --- diff --git a/src/CommandLine/LFTP.php b/src/CommandLine/LFTP.php index d3321b6..df0ee6f 100644 --- a/src/CommandLine/LFTP.php +++ b/src/CommandLine/LFTP.php @@ -38,7 +38,7 @@ class LFTP extends CloneUserpassProgram case 'FTP': $commands = array_merge($commands, [ 'set ftp:ssl-allow false', - 'connect ftp://' . $this->getHost() + //'connect ftp://' . $this->getHost() ]); break; case 'FTPS': @@ -67,7 +67,7 @@ class LFTP extends CloneUserpassProgram $mirrorCmd .= ' --dry-run'; } $commands[] = $mirrorCmd; - $this->setArg('u', $this->getUsername() . ',' . $this->getPassword()); + $this->setArg('u', $this->getUsername() . ',' . $this->getPassword().' '.$this->getHost()); $this->setArg('p', $this->getPort()); $this->setArg('e', implode(';', $commands)); }