mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix controllo permessi
This commit is contained in:
@@ -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();
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user