Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
4a13a84c
Commit
4a13a84c
authored
Mar 19, 2015
by
Joas Schilling
Browse files
Do not add apps2/ directory if it does not exist
parent
0bed1876
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/preseed-config.php
View file @
4a13a84c
<?php
$CONFIG
=
array
(
"appstoreenabled"
=>
false
,
'apps_paths'
=>
array
(
0
=>
array
(
'path'
=>
OC
::
$SERVERROOT
.
'/apps'
,
'url'
=>
'/apps'
,
'writable'
=>
true
,
),
1
=>
array
(
'path'
=>
OC
::
$SERVERROOT
.
'/apps2'
,
'url'
=>
'/apps2'
,
'writable'
=>
false
,
)
),
);
$CONFIG
=
[
'appstoreenabled'
=>
false
,
'apps_paths'
=>
[
[
'path'
=>
OC
::
$SERVERROOT
.
'/apps'
,
'url'
=>
'/apps'
,
'writable'
=>
true
,
],
],
];
if
(
substr
(
strtolower
(
PHP_OS
),
0
,
3
)
==
"win"
)
{
$CONFIG
[
'openssl'
]
=
array
(
'config'
=>
OC
::
$SERVERROOT
.
'/tests/data/openssl.cnf'
);
if
(
is_dir
(
OC
::
$SERVERROOT
.
'/apps2'
))
{
$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'
];
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment