Fix controllo permessi

This commit is contained in:
MatteoPistorello 2021-12-14 12:32:31 +01:00
parent d5025d02ee
commit 46e754f06e
2 changed files with 3 additions and 2 deletions

View File

@ -132,7 +132,7 @@ function copyr($source, $destination, $ignores = [])
try {
$fs->chmod($destination, 0777, 0000, true);
} catch (\Exception $e) {}
} catch (IOException $e) {}
foreach ($files as $file) {
$filename = rtrim($destination, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file->getRelativePathname();

View File

@ -18,6 +18,7 @@
*/
use Symfony\Component\Filesystem\Filesystem as SymfonyFilesystem;
use Symfony\Component\Filesystem\Exception\IOException;
/**
* Classe dedicata alla gestione delle procedure di aggiornamento del database del progetto.
@ -216,7 +217,7 @@ class Update
try {
$fs->chmod('backup', 0777, 0000, true);
$fs->chmod('files', 0777, 0000, true);
} catch (\Exception $e) {}
} catch (IOException $e) {}
return true;
}