Skip to content
Snippets Groups Projects
Commit 8903afec authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Don't write directives from CLI

parent 0a89073c
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment