Browse Source

Make check for writable apps dir configurable

tags/v4.5.0beta1
Bart Visscher 12 years ago
parent
commit
9d936976a9
2 changed files with 6 additions and 1 deletions
  1. 5
    0
      config/config.sample.php
  2. 1
    1
      lib/util.php

+ 5
- 0
config/config.sample.php View File

"log_type" => "", "log_type" => "",
"logfile" => "", "logfile" => "",
"loglevel" => "", "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" => "" // "datadirectory" => ""
); );
?> ?>

+ 1
- 1
lib/util.php View File

} }
// Check if apps folder is writable. // 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 = 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->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(); $tmpl->printPage();

Loading…
Cancel
Save