Correct writable check for app dir
This commit is contained in:
parent
d22f805b63
commit
84b9ac2678
|
@ -200,9 +200,11 @@ class OC_Util {
|
||||||
$errors[]=array('error'=>"Can't write into config directory 'config'",'hint'=>"You can usually fix this by giving the webserver user write access to the config directory in owncloud");
|
$errors[]=array('error'=>"Can't write into config directory 'config'",'hint'=>"You can usually fix this by giving the webserver user write access to the config directory in owncloud");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if apps folder is writable.
|
// Check if there is a writable install folder.
|
||||||
if(OC_Config::getValue('writable_appsdir', true) && !is_writable(OC::$SERVERROOT."/apps/")) {
|
if(OC_Config::getValue('appstoreenabled', true)) {
|
||||||
$errors[]=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");
|
if( OC_App::getInstallPath() === null || !is_writable(OC_App::getInstallPath())) {
|
||||||
|
$errors[]=array('error'=>"Can't write into apps directory",'hint'=>"You can usually fix this by giving the webserver user write access to the config directory in owncloud");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$CONFIG_DATADIRECTORY = OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" );
|
$CONFIG_DATADIRECTORY = OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" );
|
||||||
|
|
Loading…
Reference in New Issue