mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Fix upgrade issue
This commit is contained in:
parent
f490c53919
commit
02366067c0
2 changed files with 6 additions and 1 deletions
|
|
@ -22,6 +22,11 @@ abstract class Integrity
|
|||
echo '<ul><li>' . \implode('</li>li><li>', $result) . '</li></ul>';
|
||||
}
|
||||
|
||||
/*
|
||||
echo '<div>'.APP_VERSION_ROOT_PATH.'static directory permissions: ' . substr(sprintf('%o', fileperms(APP_VERSION_ROOT_PATH . 'static')), -4) . '</div>';
|
||||
echo '<div>'.APP_VERSION_ROOT_PATH.'themes directory permissions: ' . substr(sprintf('%o', fileperms(APP_VERSION_ROOT_PATH . 'themes')), -4) . '</div>';
|
||||
*/
|
||||
|
||||
$uri = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST']
|
||||
. \RainLoop\Utils::WebVersionPath();
|
||||
$HTTP = \SnappyMail\HTTP\Request::factory();
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ abstract class Upgrade
|
|||
public static function fixPermissions($mode = 0755) : void
|
||||
{
|
||||
\clearstatcache(true);
|
||||
\umask(0022);
|
||||
\umask(0000);
|
||||
$target = \rtrim(APP_INDEX_ROOT_PATH, '\\/');
|
||||
// Prevent Apache access error due to directories being 0700
|
||||
foreach (\glob("{$target}/snappymail/v/*", \GLOB_ONLYDIR) as $dir) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue