check if apps folder is writable
This commit is contained in:
parent
e6b0eb3423
commit
07e1e3a945
|
@ -28,6 +28,14 @@ class OC_Util {
|
|||
exit;
|
||||
}
|
||||
|
||||
// Check if apps folder is writable.
|
||||
if(!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();
|
||||
exit;
|
||||
}
|
||||
|
||||
// Create root dir.
|
||||
if(!is_dir($CONFIG_DATADIRECTORY_ROOT)){
|
||||
$success=@mkdir($CONFIG_DATADIRECTORY_ROOT);
|
||||
|
|
Loading…
Reference in New Issue