Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
9d936976
Commit
9d936976
authored
12 years ago
by
Bart Visscher
Browse files
Options
Downloads
Patches
Plain Diff
Make check for writable apps dir configurable
parent
57326ea1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config.sample.php
+5
-0
5 additions, 0 deletions
config/config.sample.php
lib/util.php
+1
-1
1 addition, 1 deletion
lib/util.php
with
6 additions
and
1 deletion
config/config.sample.php
+
5
−
0
View file @
9d936976
...
...
@@ -29,6 +29,11 @@ $CONFIG = array(
"log_type"
=>
""
,
"logfile"
=>
""
,
"loglevel"
=>
""
,
/* Set this to false to disable the check for writable apps dir.
* If the apps dir is not writable, you can't download&install extra apps
* in the admin apps menu.
*/
"writable_appsdir"
=>
true
,
// "datadirectory" => ""
);
?>
This diff is collapsed.
Click to expand it.
lib/util.php
+
1
−
1
View file @
9d936976
...
...
@@ -31,7 +31,7 @@ class OC_Util {
}
// Check if apps folder is writable.
if
(
!
is_writable
(
OC
::
$SERVERROOT
.
"/apps/"
))
{
if
(
OC_Config
::
getValue
(
'writable_appsdir'
,
true
)
&&
!
is_writable
(
OC
::
$SERVERROOT
.
"/apps/"
))
{
$tmpl
=
new
OC_Template
(
''
,
'error'
,
'guest'
);
$tmpl
->
assign
(
'errors'
,
array
(
1
=>
array
(
'error'
=>
"Can't write into apps directory 'apps'"
,
'hint'
=>
"You can usually fix this by giving the webserver user write access to the config directory in owncloud"
)));
$tmpl
->
printPage
();
...
...
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