summaryrefslogtreecommitdiffstats
path: root/lib/installer.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-28 16:54:10 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-28 16:54:10 +0200
commit1850bddb673d4e19e4ff5dd58c99855b1c0f7a71 (patch)
tree0fe22ca943beb0733c13b87b21e91f139f5b80d2 /lib/installer.php
parente7c91b55b78aff8292f48d82d107b3a4865ddb99 (diff)
downloadnextcloud-server-1850bddb673d4e19e4ff5dd58c99855b1c0f7a71.tar.gz
nextcloud-server-1850bddb673d4e19e4ff5dd58c99855b1c0f7a71.zip
move sqlite database into the data folder, makes it easier to set the correct permissions
Diffstat (limited to 'lib/installer.php')
-rw-r--r--lib/installer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/installer.php b/lib/installer.php
index 1222a22e71c..0646ef8e0ea 100644
--- a/lib/installer.php
+++ b/lib/installer.php
@@ -136,7 +136,7 @@ class OC_INSTALLER{
global $SERVERROOT;
global $WEBROOT;
$content="ErrorDocument 404 /$WEBROOT/templates/404.php\n";
- file_put_contents($SERVERROOT.'/.htaccess',$content);
+ @file_put_contents($SERVERROOT.'/.htaccess',$content); //supress errors in case we don't have permissions for it
$content="deny from all";
file_put_contents(OC_CONFIG::getValue('datadirectory',$SERVERROOT.'/data').'/.htaccess',$content);