mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-09 11:39:16 +00:00
add experimental easy installer
This commit is contained in:
@@ -15,7 +15,7 @@ function db_connect($host, $user, $pass, $db) {
|
||||
$string .= " host=$host";
|
||||
}
|
||||
|
||||
if (defined('DB_PORT')) {
|
||||
if (defined('DB_PORT') && DB_PORT) {
|
||||
$string = "$string port=" . DB_PORT;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
|
||||
require_once "sanity_config.php";
|
||||
|
||||
if (file_exists("install") && !file_exists("config.php")) {
|
||||
array_push($errors, "Please copy config.php-dist to config.php or run the installer in install/");
|
||||
}
|
||||
|
||||
if (strpos(PLUGINS, "auth_") === FALSE) {
|
||||
array_push($errors, "Please enable at least one authentication module via PLUGINS constant in config.php");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user