Skip to content

Commit

Permalink
Read Only FS return false
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored Dec 15, 2023
1 parent d6de7bf commit b22ac93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/private/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,10 @@ public static function updateHtaccess() {
\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];
Expand Down

0 comments on commit b22ac93

Please sign in to comment.