Change user, group pour ftp et sftp

This commit is contained in:
Michael RICOIS 2014-10-02 09:45:58 +00:00
parent 85fcc8eaa5
commit 19b6bf6fd9

View File

@ -105,7 +105,16 @@ if ( $result->count() > 0 ) {
$lines = file($source);
$nbLines = count($lines);
chown($dest, $item->client);
if ($item->depotType == 'FTP')
{
chown($dest, 'ftpuser');
chgrp($dest, 'ftpgroup');
}
elseif($item->depotType == 'SFTP')
{
chown($dest, $item->client);
}
$fluxM->update(array(
'depotDate' => date('YmdHis'),