Skip to content
Snippets Groups Projects
Commit 9d936976 authored by Bart Visscher's avatar Bart Visscher
Browse files

Make check for writable apps dir configurable

parent 57326ea1
No related branches found
No related tags found
No related merge requests found
......@@ -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" => ""
);
?>
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment