]> source.dussan.org Git - nextcloud-server.git/commitdiff
Read Only FS return false 42298/head
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>
Fri, 15 Dec 2023 07:35:15 +0000 (08:35 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2023 07:35:15 +0000 (08:35 +0100)
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
lib/private/Setup.php

index ec86a844334949fd47f7ceb126093734d7a1d837..3cd3716c19598885f105ed55feb116eb4de6a883 100644 (file)
@@ -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];