summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2012-06-01 19:00:28 +0100
committerSam Tuke <samtuke@owncloud.com>2012-06-01 19:00:28 +0100
commit2ccf3da41168f843a5895913f0c1ef41a0cb04b7 (patch)
tree34a44c8b46b457a6bd60099c61af6ec6aba3faab /lib
parent410b556a8651695dd15e742e0501d4da341ef594 (diff)
parent07e1e3a9454df55d27e3c52e6345a6a3aee1344a (diff)
downloadnextcloud-server-2ccf3da41168f843a5895913f0c1ef41a0cb04b7.tar.gz
nextcloud-server-2ccf3da41168f843a5895913f0c1ef41a0cb04b7.zip
Merge branch 'master' of gitorious.org:owncloud/owncloud
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index be7fc00da8f..628c23f4cba 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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);