diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-25 00:01:58 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-25 02:42:47 +0200 |
commit | 65cd9e679154869b92b5c8e2f7f2d7391b02678a (patch) | |
tree | 9355f106cbeffdd330b24f8d5783c5127e8ca04c /community/nextcloud/dont-update-htaccess.patch | |
parent | 56340e0c374f9f287da09df6dbf52894d2ea4861 (diff) | |
download | aports-65cd9e679154869b92b5c8e2f7f2d7391b02678a.tar.bz2 aports-65cd9e679154869b92b5c8e2f7f2d7391b02678a.tar.xz |
community/nextcloud: remove updater and disable messing w/ htaccess
Diffstat (limited to 'community/nextcloud/dont-update-htaccess.patch')
-rw-r--r-- | community/nextcloud/dont-update-htaccess.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/nextcloud/dont-update-htaccess.patch b/community/nextcloud/dont-update-htaccess.patch new file mode 100644 index 0000000000..d0e3eb8cc6 --- /dev/null +++ b/community/nextcloud/dont-update-htaccess.patch @@ -0,0 +1,44 @@ +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 + +--- a/core/register_command.php ++++ b/core/register_command.php +@@ -124,7 +125,6 @@ + $application->add(new OC\Core\Command\Maintenance\Mimetype\UpdateDB(\OC::$server->getMimeTypeDetector(), \OC::$server->getMimeTypeLoader())); + $application->add(new OC\Core\Command\Maintenance\Mimetype\UpdateJS(\OC::$server->getMimeTypeDetector())); + $application->add(new OC\Core\Command\Maintenance\Mode(\OC::$server->getConfig())); +- $application->add(new OC\Core\Command\Maintenance\UpdateHtaccess()); + + $application->add(new OC\Core\Command\Upgrade(\OC::$server->getConfig(), \OC::$server->getLogger())); + $application->add(new OC\Core\Command\Maintenance\Repair( +--- a/lib/private/Setup.php ++++ b/lib/private/Setup.php +@@ -387,10 +387,6 @@ + // out that this is indeed an ownCloud data directory + file_put_contents($config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/.ocdata', ''); + +- // Update .htaccess files +- Setup::updateHtaccess(); +- Setup::protectDataDirectory(); +- + self::installBackgroundJobs(); + + //and we are done +--- a/lib/private/Updater.php ++++ b/lib/private/Updater.php +@@ -233,14 +233,6 @@ + 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) |