From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Fri, 15 Dec 2023 07:35:15 +0000 (+0100) Subject: Read Only FS return false X-Git-Tag: v29.0.0beta1~612^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b22ac9360652267ac277df35b1c1290d0bfc4852;p=nextcloud-server.git Read Only FS return false Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- diff --git a/lib/private/Setup.php b/lib/private/Setup.php index ec86a844334..3cd3716c195 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -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];