summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch
blob: 92cebab3e8888e4b9cb6fb9688bcca1b1b92c621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo
--- ./bin/phpcompatinfo.rpm	2021-12-13 12:09:12.000000000 +0100
+++ ./bin/phpcompatinfo	2021-12-13 12:12:30.838533965 +0100
@@ -6,6 +6,10 @@ if (PHP_SAPI !== 'cli') {
     return;
 }
 
+if (!getenv("DATABASE_URL")) {
+     putenv("DATABASE_URL=sqlite:///" . dirname(__DIR__) . "/data/compatinfo-db.sqlite");
+}
+
 gc_disable(); // performance boost
 
 require_once dirname(__DIR__) . '/config/bootstrap.php';