summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index 938eb448..dd226f5b 100644
--- a/index.php
+++ b/index.php
@@ -51,6 +51,7 @@ if (PHP_SAPI == 'cli') {
define('TEST_MODE', 1);
@system('mkdir -p test/var/logs');
define('VARPATH', strtr(realpath('test/var') . '/', DIRECTORY_SEPARATOR, '/'));
+ @copy("var/database.php", VARPATH . "database.php");
} else {
if (file_exists('var')) {
define('VARPATH', strtr(realpath('var') . '/', DIRECTORY_SEPARATOR, '/'));