Don't write directives from CLI

This commit is contained in:
Lukas Reschke 2015-12-08 08:17:04 +01:00
parent 0a89073c47
commit 8903afec26
1 changed files with 5 additions and 0 deletions

View File

@ -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());