Commit 4a13a84c authored by Joas Schilling's avatar Joas Schilling
Browse files

Do not add apps2/ directory if it does not exist

parent 0bed1876
<?php <?php
$CONFIG = array ( $CONFIG = [
"appstoreenabled" => false, 'appstoreenabled' => false,
'apps_paths' => 'apps_paths' => [
array ( [
0 => 'path' => OC::$SERVERROOT . '/apps',
array (
'path' => OC::$SERVERROOT.'/apps',
'url' => '/apps', 'url' => '/apps',
'writable' => true, 'writable' => true,
), ],
1 => ],
array ( ];
'path' => OC::$SERVERROOT.'/apps2',
if (is_dir(OC::$SERVERROOT.'/apps2')) {
$CONFIG['apps_paths'][] = [
'path' => OC::$SERVERROOT . '/apps2',
'url' => '/apps2', 'url' => '/apps2',
'writable' => false, 'writable' => false,
) ];
), }
);
if(substr(strtolower(PHP_OS), 0, 3) == "win") { if (substr(strtolower(PHP_OS), 0, 3) === 'win') {
$CONFIG['openssl'] = array( 'config' => OC::$SERVERROOT.'/tests/data/openssl.cnf'); $CONFIG['openssl'] = ['config' => OC::$SERVERROOT . '/tests/data/openssl.cnf'];
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment