mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Read Only FS return false
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
d6de7bf21b
commit
b22ac93606
1 changed files with 4 additions and 0 deletions
|
|
@ -522,6 +522,10 @@ class Setup {
|
|||
\OCP\Server::get(Installer::class)
|
||||
);
|
||||
|
||||
if (!is_writable($setupHelper->pathToHtaccess())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$htaccessContent = file_get_contents($setupHelper->pathToHtaccess());
|
||||
$content = "#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####\n";
|
||||
$htaccessContent = explode($content, $htaccessContent, 2)[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue