Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
5b0e6982
Unverified
Commit
5b0e6982
authored
4 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
Apps folder is defacto in root folder and not above
Signed-off-by:
Morris Jobke
<
hey@morrisjobke.de
>
parent
4c81f5c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/base.php
+2
-9
2 additions, 9 deletions
lib/base.php
with
2 additions
and
9 deletions
lib/base.php
+
2
−
9
View file @
5b0e6982
...
...
@@ -211,25 +211,18 @@ class OC {
}
}
elseif
(
file_exists
(
OC
::
$SERVERROOT
.
'/apps'
))
{
OC
::
$APPSROOTS
[]
=
[
'path'
=>
OC
::
$SERVERROOT
.
'/apps'
,
'url'
=>
'/apps'
,
'writable'
=>
true
];
}
elseif
(
file_exists
(
OC
::
$SERVERROOT
.
'/../apps'
))
{
OC
::
$APPSROOTS
[]
=
[
'path'
=>
rtrim
(
dirname
(
OC
::
$SERVERROOT
),
'/'
)
.
'/apps'
,
'url'
=>
'/apps'
,
'writable'
=>
true
];
}
if
(
empty
(
OC
::
$APPSROOTS
))
{
throw
new
\RuntimeException
(
'apps directory not found! Please put the Nextcloud apps folder in the Nextcloud folder'
.
'
or the folder above
. You can also configure the location in the config.php file.'
);
.
'. You can also configure the location in the config.php file.'
);
}
$paths
=
[];
foreach
(
OC
::
$APPSROOTS
as
$path
)
{
$paths
[]
=
$path
[
'path'
];
if
(
!
is_dir
(
$path
[
'path'
]))
{
throw
new
\RuntimeException
(
sprintf
(
'App directory "%s" not found! Please put the Nextcloud apps folder in the'
.
' Nextcloud folder or the folder above. You can also configure the location in the'
.
' config.php file.'
,
$path
[
'path'
]));
.
' Nextcloud folder. You can also configure the location in the config.php file.'
,
$path
[
'path'
]));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment