iports/ilot/nextcloud/dont-update-htaccess.patch
Antoine Martin 89ba59bc6b
Some checks failed
/ lint (pull_request) Failing after 27s
/ deploy-x86_64 (pull_request) Has been skipped
/ build-x86_64 (pull_request) Failing after 41s
/ deploy-aarch64 (pull_request) Has been skipped
/ build-aarch64 (pull_request) Failing after 1m11s
ilot/nextcloud: new aport
2024-11-05 10:13:57 -05:00

42 lines
1.6 KiB
Diff

Don't mess with .htaccess files.
Patch ported from https://src.fedoraproject.org/cgit/rpms/nextcloud.git/tree/nextcloud-9.1.0-dont_update_htacess.patch
---
core/register_command.php | 1 -
lib/private/Updater.php | 8 --------
2 files changed, 9 deletions(-)
diff --git a/core/register_command.php b/core/register_command.php
index 4a84e551..a5158dc4 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -136,7 +136,6 @@ if ($config->getSystemValueBool('installed', false)) {
$application->add(Server::get(Command\Maintenance\Mimetype\UpdateDB::class));
$application->add(Server::get(Command\Maintenance\Mimetype\UpdateJS::class));
$application->add(Server::get(Command\Maintenance\Mode::class));
- $application->add(Server::get(Command\Maintenance\UpdateHtaccess::class));
$application->add(Server::get(Command\Maintenance\UpdateTheme::class));
$application->add(Server::get(Command\Upgrade::class));
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 09866273..59144308 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -230,14 +230,6 @@ class Updater extends BasicEmitter {
throw new \Exception('Updates between multiple major versions and downgrades are unsupported.');
}
- // Update .htaccess files
- try {
- Setup::updateHtaccess();
- Setup::protectDataDirectory();
- } catch (\Exception $e) {
- throw new \Exception($e->getMessage());
- }
-
// create empty file in data dir, so we can later find
// out that this is indeed an ownCloud data directory
// (in case it didn't exist before)
--
2.44.0