aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-12-15 08:35:15 +0100
committerGitHub <noreply@github.com>2023-12-15 08:35:15 +0100
commitb22ac9360652267ac277df35b1c1290d0bfc4852 (patch)
tree4cb241b35b355dc0cce4c3c4669c0ddd7c8f8a8e /lib/private/Setup.php
parentd6de7bf21b5696105a81eeca65c292ae556d0e61 (diff)
downloadnextcloud-server-b22ac9360652267ac277df35b1c1290d0bfc4852.tar.gz
nextcloud-server-b22ac9360652267ac277df35b1c1290d0bfc4852.zip
Read Only FS return false
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php4
1 files changed, 4 insertions, 0 deletions
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];