You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-09 05:02:44 +03:00
the directory the SQLite database is in must be writeable
This commit is contained in:
@@ -1496,6 +1496,11 @@ function db_connect_with_errors() {
|
|||||||
return array($link, $error_text);
|
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}";
|
$dsn = "sqlite:{$db}";
|
||||||
$username_password = false;
|
$username_password = false;
|
||||||
} elseif (db_pgsql()) {
|
} elseif (db_pgsql()) {
|
||||||
|
Reference in New Issue
Block a user