Skip to content

Commit 9ab674b

Browse files
committed
MAGETWO-52667: CLI unaffected by permissions configuration setting in server config
- set umask after BP is defined.
1 parent b51fc96 commit 9ab674b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
exit(1);
2828
}
2929

30+
require_once __DIR__ . '/autoload.php';
31+
require_once BP . '/app/functions.php';
32+
3033
/* Custom umask value may be provided in optional mage_umask file in root */
3134
$umaskFile = BP . '/magento_umask';
3235
$mask = file_exists($umaskFile) ? octdec(file_get_contents($umaskFile)) : 002;
3336
umask($mask);
3437

35-
require_once __DIR__ . '/autoload.php';
36-
require_once BP . '/app/functions.php';
37-
3838
if (!empty($_SERVER['MAGE_PROFILER'])
3939
&& isset($_SERVER['HTTP_ACCEPT'])
4040
&& strpos($_SERVER['HTTP_ACCEPT'], 'text/html') !== false

0 commit comments

Comments
 (0)