diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2018-10-30 23:42:51 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2018-10-30 23:42:51 +0300 |
commit | 40bd01ac8bd523aad1904cf8c1590192734cd9c1 (patch) | |
tree | 2ae5fa0bffe51e6e420674010092c3dbd4a1b5e2 /plugins/Installation | |
parent | 06bf824590aa18d0425dba83b9e49d7c2394d1af (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.php | 2 |
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); } } |