Don't write directives from CLI
This commit is contained in:
parent
0a89073c47
commit
8903afec26
|
@ -396,6 +396,11 @@ class Setup {
|
||||||
* Append the correct ErrorDocument path for Apache hosts
|
* Append the correct ErrorDocument path for Apache hosts
|
||||||
*/
|
*/
|
||||||
public static function updateHtaccess() {
|
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(),
|
$setupHelper = new \OC\Setup(\OC::$server->getConfig(), \OC::$server->getIniWrapper(),
|
||||||
\OC::$server->getL10N('lib'), new \OC_Defaults(), \OC::$server->getLogger(),
|
\OC::$server->getL10N('lib'), new \OC_Defaults(), \OC::$server->getLogger(),
|
||||||
\OC::$server->getSecureRandom());
|
\OC::$server->getSecureRandom());
|
||||||
|
|
Loading…
Reference in New Issue