Fix upgrade issue

This commit is contained in:
the-djmaze 2023-12-11 16:46:50 +01:00
parent f490c53919
commit 02366067c0
2 changed files with 6 additions and 1 deletions

View file

@ -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();

View file

@ -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) {