Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2018-10-30 23:42:51 +0300
committerStefan Giehl <stefan@piwik.org>2018-10-30 23:42:51 +0300
commit40bd01ac8bd523aad1904cf8c1590192734cd9c1 (patch)
tree2ae5fa0bffe51e6e420674010092c3dbd4a1b5e2 /plugins/Installation
parent06bf824590aa18d0425dba83b9e49d7c2394d1af (diff)
Regenerate htaccess files after update (#13591)
* Regenerate htaccess files after update just in case someone deleted them manually or by accident * acquire lock in case multiple updaters are running at the same time in one filesystem
Diffstat (limited to 'plugins/Installation')
-rw-r--r--plugins/Installation/ServerFilesGenerator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Installation/ServerFilesGenerator.php b/plugins/Installation/ServerFilesGenerator.php
index 32f2ab38c8..5a909845c5 100644
--- a/plugins/Installation/ServerFilesGenerator.php
+++ b/plugins/Installation/ServerFilesGenerator.php
@@ -91,7 +91,7 @@ class ServerFilesGenerator
$content = "# This file is auto generated by Matomo, do not edit directly\n# Please report any issue or improvement directly to the Matomo team.\n\n" . $content;
if ($overwrite || !file_exists($file)) {
- @file_put_contents($file, $content);
+ @file_put_contents($file, $content, LOCK_EX);
}
}