summary refs log tree commit diff
path: root/pkgs/servers/web-apps/matomo/bootstrap.php
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/web-apps/matomo/bootstrap.php')
-rw-r--r--pkgs/servers/web-apps/matomo/bootstrap.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/servers/web-apps/matomo/bootstrap.php b/pkgs/servers/web-apps/matomo/bootstrap.php
new file mode 100644
index 00000000000..a8163f33e5c
--- /dev/null
+++ b/pkgs/servers/web-apps/matomo/bootstrap.php
@@ -0,0 +1,6 @@
+<?php
+// get PIWIK_USER_PATH from environment variable,
+// so this bootstrap.php can be read-only but still configure PIWIK_USER_PATH at runtime
+if ($path = getenv('PIWIK_USER_PATH')) {
+  define('PIWIK_USER_PATH', $path);
+}