0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

the directory the SQLite database is in must be writeable

This commit is contained in:
8ctopus 2019-02-10 10:56:08 +05:00
parent ceae3caa37
commit 4f2dab357c

View File

@ -1496,6 +1496,11 @@ function db_connect_with_errors() {
return array($link, $error_text);
}
if (!is_writeable(dirname($db))) {
$error_text = 'The directory the SQLite database is in is not writeable: '. dirname($db);
return array($link, $error_text);
}
$dsn = "sqlite:{$db}";
$username_password = false;
} elseif (db_pgsql()) {