Skip to content

Commit

Permalink
Resetting permissions of binaries after an upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Oct 10, 2014
1 parent cc68065 commit d2bfaca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system/src/Grav/Common/GPM/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ public static function sophisticatedInstall($zip, $install_path, $tmp)
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);
Expand Down

0 comments on commit d2bfaca

Please sign in to comment.