publicstaticfunctionsetupFS($user="",$root="files"){// configure the initial filesystem based on the configuration
if(self::$fsSetup){//setting up the filesystem twice can only lead to trouble
publicstaticfunctionsetupFS($user="",$root="files"){// configure the initial filesystem based on the configuration
if(self::$fsSetup){//setting up the filesystem twice can only lead to trouble
returnfalse;
}
...
...
@@ -27,6 +27,15 @@ class OC_Util {
$tmpl->printPage();
exit;
}
// Check if apps folder is writable.
if(!is_writable(OC::$SERVERROOT."/apps/")){
$tmpl=newOC_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")));