From d2bfacad4eea6de1ef26c87b6a2bea72f3360ace Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Fri, 10 Oct 2014 15:07:47 -0700 Subject: [PATCH] Resetting permissions of binaries after an upgrade --- system/src/Grav/Common/GPM/Installer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/src/Grav/Common/GPM/Installer.php b/system/src/Grav/Common/GPM/Installer.php index 84574dd86..dc2d563c2 100644 --- a/system/src/Grav/Common/GPM/Installer.php +++ b/system/src/Grav/Common/GPM/Installer.php @@ -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);