summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-12-08 08:17:04 +0100
committerLukas Reschke <lukas@owncloud.com>2015-12-08 08:17:04 +0100
commit8903afec2687e762238d161ef9d986be9a1786a3 (patch)
tree5f3df88c71ef53b3b2924e5ab1cbb7e560381bbf /lib
parent0a89073c475632a296b7315d96894503a78bbf43 (diff)
downloadnextcloud-server-8903afec2687e762238d161ef9d986be9a1786a3.tar.gz
nextcloud-server-8903afec2687e762238d161ef9d986be9a1786a3.zip
Don't write directives from CLI
Diffstat (limited to 'lib')
-rw-r--r--lib/private/setup.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/setup.php b/lib/private/setup.php
index 4a555b3e415..97d01c50109 100644
--- a/lib/private/setup.php
+++ b/lib/private/setup.php
@@ -396,6 +396,11 @@ class Setup {
* Append the correct ErrorDocument path for Apache hosts
*/
public static function updateHtaccess() {
+ // From CLI we don't know the defined web root. Thus we can't write any
+ // directives into the .htaccess file.
+ if(\OC::$CLI) {
+ return;
+ }
$setupHelper = new \OC\Setup(\OC::$server->getConfig(), \OC::$server->getIniWrapper(),
\OC::$server->getL10N('lib'), new \OC_Defaults(), \OC::$server->getLogger(),
\OC::$server->getSecureRandom());