Fix controllo sui permessi all'aggiornamento
This commit is contained in:
parent
04c00952bf
commit
469e0acc16
|
@ -130,7 +130,9 @@ function copyr($source, $destination, $ignores = [])
|
|||
// Filesystem Symfony
|
||||
$fs = new SymfonyFilesystem();
|
||||
|
||||
$fs->chmod($destination, 0777, 0000, true);
|
||||
try {
|
||||
$fs->chmod($destination, 0777, 0000, true);
|
||||
} catch (\Exception $e) {}
|
||||
|
||||
foreach ($files as $file) {
|
||||
$filename = rtrim($destination, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file->getRelativePathname();
|
||||
|
|
|
@ -212,8 +212,11 @@ class Update
|
|||
|
||||
// Correzione permessi per le cartelle backup e files
|
||||
$fs = new SymfonyFilesystem();
|
||||
$fs->chmod('backup', 0777, 0000, true);
|
||||
$fs->chmod('files', 0777, 0000, true);
|
||||
|
||||
try {
|
||||
$fs->chmod('backup', 0777, 0000, true);
|
||||
$fs->chmod('files', 0777, 0000, true);
|
||||
} catch (\Exception $e) {}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue