mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix controllo sui permessi all'aggiornamento
This commit is contained in:
@@ -130,7 +130,9 @@ function copyr($source, $destination, $ignores = [])
|
|||||||
// Filesystem Symfony
|
// Filesystem Symfony
|
||||||
$fs = new SymfonyFilesystem();
|
$fs = new SymfonyFilesystem();
|
||||||
|
|
||||||
|
try {
|
||||||
$fs->chmod($destination, 0777, 0000, true);
|
$fs->chmod($destination, 0777, 0000, true);
|
||||||
|
} catch (\Exception $e) {}
|
||||||
|
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$filename = rtrim($destination, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file->getRelativePathname();
|
$filename = rtrim($destination, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file->getRelativePathname();
|
||||||
|
@@ -212,8 +212,11 @@ class Update
|
|||||||
|
|
||||||
// Correzione permessi per le cartelle backup e files
|
// Correzione permessi per le cartelle backup e files
|
||||||
$fs = new SymfonyFilesystem();
|
$fs = new SymfonyFilesystem();
|
||||||
|
|
||||||
|
try {
|
||||||
$fs->chmod('backup', 0777, 0000, true);
|
$fs->chmod('backup', 0777, 0000, true);
|
||||||
$fs->chmod('files', 0777, 0000, true);
|
$fs->chmod('files', 0777, 0000, true);
|
||||||
|
} catch (\Exception $e) {}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user