refresh debian patch

pull/181/head
David Goodwin 7 years ago
parent b48f99d4c6
commit 1308c52355

@ -1,8 +1,8 @@
--- a/config.inc.php --- a/config.inc.php
+++ b/config.inc.php +++ b/config.inc.php
@@ -15,6 +15,17 @@ @@ -31,6 +31,16 @@
* Contains configuration options. ################################################################################
*/
+// Debian: This loads the automatic generated DB credentials from /etc/postfixadmin/dbconfig.inc.php +// Debian: This loads the automatic generated DB credentials from /etc/postfixadmin/dbconfig.inc.php
+$db_config = dirname(__FILE__) . '/dbconfig.inc.php'; +$db_config = dirname(__FILE__) . '/dbconfig.inc.php';
@ -14,11 +14,10 @@
+if (!isset($dbserver) || empty($dbserver)) { +if (!isset($dbserver) || empty($dbserver)) {
+ $dbserver = 'localhost'; + $dbserver = 'localhost';
+} +}
+
/***************************************************************** /*****************************************************************
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* You have to set $CONF['configured'] = true; before the @@ -39,7 +49,7 @@
@@ -22,7 +33,7 @@
* Doing this implies you have changed this file as required. * Doing this implies you have changed this file as required.
* i.e. configuring database etc; specifying setup.php password etc. * i.e. configuring database etc; specifying setup.php password etc.
*/ */
@ -27,7 +26,7 @@
// In order to setup Postfixadmin, you MUST specify a hashed password here. // In order to setup Postfixadmin, you MUST specify a hashed password here.
// To create the hash, visit setup.php in a browser and type a password into the field, // To create the hash, visit setup.php in a browser and type a password into the field,
@@ -81,11 +92,11 @@ @@ -98,11 +108,11 @@ function language_hook($PALANG, $language) {
// mysqli = MySQL 4.1+ or MariaDB // mysqli = MySQL 4.1+ or MariaDB
// pgsql = PostgreSQL // pgsql = PostgreSQL
// sqlite = SQLite 3 // sqlite = SQLite 3

Loading…
Cancel
Save