Set the default umask automatically upon install

This commit is contained in:
Kijin Sung 2016-07-03 21:48:09 +09:00
parent f0e6b818af
commit 63b6ac9e37
4 changed files with 12 additions and 7 deletions

View file

@ -195,6 +195,9 @@ class installController extends install
// Set the default URL.
$config['url']['default'] = Context::getRequestUri();
// Set the default umask.
$config['file']['umask'] = Rhymix\Framework\Storage::recommendUmask();
// Load the new configuration.
Rhymix\Framework\Config::setAll($config);
Context::loadDBInfo($config);
@ -240,7 +243,7 @@ class installController extends install
}
// Apply site lock.
if (Context::get('use_sitelock') === 'Y')
{
$user_ip_range = getView('install')->detectUserIPRange();