You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
626 B
PHTML
27 lines
626 B
PHTML
6 years ago
|
<?php
|
||
|
|
||
|
define('POSTFIXADMIN', 1);
|
||
|
define('POSTFIXADMIN_CLI', 1);
|
||
|
|
||
|
require_once(dirname(__FILE__) . '/../vendor/autoload.php');
|
||
|
require_once(dirname(__FILE__) . '/../common.php');
|
||
|
|
||
|
|
||
|
$CONF['default_language'] = 'en';
|
||
|
$CONF['language_hook'] = '';
|
||
|
|
||
|
$db_file = '/tmp/postfixadmin.sqlite.test';
|
||
|
$CONF['database_type'] = 'sqlite';
|
||
|
$CONF['database_name'] = $db_file;
|
||
|
|
||
|
Config::write('database_type', 'sqlite');
|
||
|
Config::write('database_name', $db_file);
|
||
|
|
||
|
clearstatcache();
|
||
|
if (file_exists($db_file)) {
|
||
|
unlink($db_file);
|
||
|
}
|
||
|
|
||
|
|
||
|
require_once(dirname(__FILE__) . '/../public/upgrade.php');
|