Do not add apps2/ directory if it does not exist
This commit is contained in:
parent
0bed187613
commit
4a13a84cab
|
@ -1,23 +1,23 @@
|
||||||
<?php
|
<?php
|
||||||
$CONFIG = array (
|
$CONFIG = [
|
||||||
"appstoreenabled" => false,
|
'appstoreenabled' => false,
|
||||||
'apps_paths' =>
|
'apps_paths' => [
|
||||||
array (
|
[
|
||||||
0 =>
|
'path' => OC::$SERVERROOT . '/apps',
|
||||||
array (
|
'url' => '/apps',
|
||||||
'path' => OC::$SERVERROOT.'/apps',
|
'writable' => true,
|
||||||
'url' => '/apps',
|
],
|
||||||
'writable' => true,
|
],
|
||||||
),
|
];
|
||||||
1 =>
|
|
||||||
array (
|
|
||||||
'path' => OC::$SERVERROOT.'/apps2',
|
|
||||||
'url' => '/apps2',
|
|
||||||
'writable' => false,
|
|
||||||
)
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
if(substr(strtolower(PHP_OS), 0, 3) == "win") {
|
if (is_dir(OC::$SERVERROOT.'/apps2')) {
|
||||||
$CONFIG['openssl'] = array( 'config' => OC::$SERVERROOT.'/tests/data/openssl.cnf');
|
$CONFIG['apps_paths'][] = [
|
||||||
|
'path' => OC::$SERVERROOT . '/apps2',
|
||||||
|
'url' => '/apps2',
|
||||||
|
'writable' => false,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (substr(strtolower(PHP_OS), 0, 3) === 'win') {
|
||||||
|
$CONFIG['openssl'] = ['config' => OC::$SERVERROOT . '/tests/data/openssl.cnf'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue