summaryrefslogtreecommitdiffstats
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
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-12-19 21:09:31 +0000
commit26068baa4a63a30d20fad2d9179227094acd7d1e (patch)
tree1ddd154f2255bbf1b33ea4a93f79eb65ea527781 /lib/private/Setup.php
parent38224a844f70c79eb85c142c011b7282455b726c (diff)
downloadnextcloud-server-26068baa4a63a30d20fad2d9179227094acd7d1e.tar.gz
nextcloud-server-26068baa4a63a30d20fad2d9179227094acd7d1e.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 657156cf171..77eeea22ad3 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -522,6 +522,10 @@ class Setup {
\OC::$server->query(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];