]> _ Git - cubist_util.git/commitdiff
wip #6527 Modification commande sftp
authorsoufiane <soufiane@cubedesigners.com>
Thu, 30 Nov 2023 09:34:15 +0000 (10:34 +0100)
committersoufiane <soufiane@cubedesigners.com>
Thu, 30 Nov 2023 09:34:15 +0000 (10:34 +0100)
src/CommandLine/LFTP.php

index d3321b624e7890b47daba1800bfcf38d15aeae15..df0ee6feacddf5a19de9c69b8132463045abeb12 100644 (file)
@@ -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));
     }