Change user, group pour ftp et sftp
This commit is contained in:
parent
85fcc8eaa5
commit
19b6bf6fd9
11
fileRecv.php
11
fileRecv.php
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user