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

index df0ee6feacddf5a19de9c69b8132463045abeb12..7a103e8228ba44b60fc46f07ed1f121fce533e60 100644 (file)
@@ -67,9 +67,8 @@ class LFTP extends CloneUserpassProgram
             $mirrorCmd .= ' --dry-run';
         }
         $commands[] = $mirrorCmd;
-        $this->setArg('u', $this->getUsername() . ',' . $this->getPassword().' '.$this->getHost());
-        $this->setArg('p', $this->getPort());
-        $this->setArg('e', implode(';', $commands));
+
+        $this->setArg('c', 'open ftp://'.$this->getUsername().':'.$this->getPassword().'@'.$this->getHost().':'.$this->getPort().' '.implode(';', $commands));
     }
 
     /**