Resetting permissions of binaries after an upgrade

This commit is contained in:
Djamil Legato
2014-10-10 15:07:47 -07:00
parent cc68065f94
commit d2bfacad4e

View File

@@ -143,6 +143,12 @@ class Installer
if (is_dir($path)) {
Folder::delete($path);
Folder::move($tmp . DS . $filename, $path);
if ($fileinfo['basename'] == 'bin') {
foreach (glob($path . DS . '*') as $file) {
@chmod($file, 0755);
}
}
} else {
if (is_file($path)) {
@unlink($path);