summaryrefslogtreecommitdiffstats
path: root/lib/private/updater.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/updater.php')
-rw-r--r--lib/private/updater.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php
index f05d5038b76..67764771fd0 100644
--- a/lib/private/updater.php
+++ b/lib/private/updater.php
@@ -92,6 +92,7 @@ class Updater extends BasicEmitter {
/**
* runs the update actions in maintenance mode, does not upgrade the source files
+ * except the main .htaccess file
*/
public function upgrade() {
\OC_DB::enableCaching(false);
@@ -103,6 +104,11 @@ class Updater extends BasicEmitter {
}
$this->emit('\OC\Updater', 'maintenanceStart');
+ // Update htaccess files for apache hosts
+ if (isset($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache')) {
+ \OC_Setup::updateHtaccess();
+ }
+
/*
* START CONFIG CHANGES FOR OLDER VERSIONS
*/