Browse Source

Read Only FS return false

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
tags/v29.0.0beta1
Git'Fellow 6 months ago
parent
commit
b22ac93606
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lib/private/Setup.php

+ 4
- 0
lib/private/Setup.php View File

\OCP\Server::get(Installer::class) \OCP\Server::get(Installer::class)
); );


if (!is_writable($setupHelper->pathToHtaccess())) {
return false;
}

$htaccessContent = file_get_contents($setupHelper->pathToHtaccess()); $htaccessContent = file_get_contents($setupHelper->pathToHtaccess());
$content = "#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####\n"; $content = "#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####\n";
$htaccessContent = explode($content, $htaccessContent, 2)[0]; $htaccessContent = explode($content, $htaccessContent, 2)[0];

Loading…
Cancel
Save