mirror of
https://github.com/getgrav/grav.git
synced 2026-03-18 02:21:11 +01:00
Resetting permissions of binaries after an upgrade
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user