mirror of
https://github.com/YunoHost-Apps/galette_ynh.git
synced 2024-09-03 18:36:28 +02:00
fix
This commit is contained in:
parent
b900c4838a
commit
7048f6d8af
3 changed files with 25 additions and 41 deletions
|
@ -1,41 +1,25 @@
|
||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
|
This is an example for your configuration file,
|
||||||
|
read comments and replace the "blanks".
|
||||||
|
You can then copy the file in GALETTE_CONFIG_PATH/config.inc.php
|
||||||
|
|
||||||
/**
|
$Id$
|
||||||
* PostgreSQL configuration file for tests
|
*/
|
||||||
*
|
|
||||||
* PHP version 5
|
|
||||||
*
|
|
||||||
* @category Tests
|
|
||||||
* @package Galette
|
|
||||||
*
|
|
||||||
* @author Johan Cwiklinski <johan@x-tnd.be>
|
|
||||||
* @copyright 2012-2014 The Galette Team
|
|
||||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
|
|
||||||
* @version SVN: $Id$
|
|
||||||
* @link http://galette.tuxfamily.org
|
|
||||||
* @since Available since 0.7.3dev 2012-12-12
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/* choose your database engine, values : pgsql|mysql */
|
||||||
define("TYPE_DB", "pgsql");
|
define("TYPE_DB", "pgsql");
|
||||||
|
/* hostname for the database */
|
||||||
if (file_exists(__DIR__ . '/local_config.inc.php')) {
|
define("HOST_DB", "localhost");
|
||||||
include_once __DIR__ . '/local_config.inc.php';
|
/* tcp port for the database */
|
||||||
}
|
define("PORT_DB", "5432");
|
||||||
if (!defined('HOST_DB')) {
|
/* the username for the database */
|
||||||
define("HOST_DB", "localhost");
|
define("USER_DB", "__DB_NAME__");
|
||||||
}
|
/* password for the username define above */
|
||||||
if (!defined('PORT_DB')) {
|
define("PWD_DB", "__DB_PWD__");
|
||||||
define("PORT_DB", "5432");
|
/* the database name */
|
||||||
}
|
define("NAME_DB", "__DB_NAME__");
|
||||||
if (!defined('USER_DB')) {
|
/* tables name prefix (default is galette_) */
|
||||||
define("USER_DB", "__DB_NAME__");
|
define("PREFIX_DB", "galette_");
|
||||||
}
|
/* FIXME will disappear soon */
|
||||||
if (!defined('PWD_DB')) {
|
define("STOCK_FILES", "tempimages");
|
||||||
define("PWD_DB", "__DB_PWD__");
|
|
||||||
}
|
|
||||||
if (!defined('NAME_DB')) {
|
|
||||||
define("NAME_DB", "__DB_NAME__");
|
|
||||||
}
|
|
||||||
if (!defined('PREFIX_DB')) {
|
|
||||||
define("PREFIX_DB", "galette_");
|
|
||||||
}
|
|
||||||
|
|
|
@ -35,5 +35,5 @@ location __PATH__/ {
|
||||||
# }
|
# }
|
||||||
|
|
||||||
location @__APP__ {
|
location @__APP__ {
|
||||||
rewrite ^(.*)$ __PATH__/index.php last;
|
rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last;
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,9 +152,9 @@ message="Galette need you to finish the installation manually.
|
||||||
Please open "$domain/$path_url" and finish the install process.
|
Please open "$domain/$path_url" and finish the install process.
|
||||||
|
|
||||||
Database information you'll need:
|
Database information you'll need:
|
||||||
Type: mysql
|
Type: pgsql
|
||||||
Host: localhost
|
Host: localhost
|
||||||
Port: 3306
|
Port: 5432
|
||||||
User: "$db_name"
|
User: "$db_name"
|
||||||
Password: "$db_pwd"
|
Password: "$db_pwd"
|
||||||
Name: "$db_name"
|
Name: "$db_name"
|
||||||
|
|
Loading…
Reference in a new issue