ttrss/debian/config.php-dist-tt-rss-pgsq...

36 lines
1.2 KiB
Diff
Raw Normal View History

2011-12-14 08:37:13 +00:00
--- config.php-dist 2011-12-13 19:22:16.820796058 +0400
+++ config.php-dist.pgsql 2011-12-14 12:10:11.203290174 +0400
@@ -3,12 +3,12 @@
// *** Database configuration (important!) ***
// *******************************************
- define('DB_TYPE', "pgsql"); // or mysql
- define('DB_HOST', "localhost");
- define('DB_USER', "fox");
- define('DB_NAME', "fox");
- define('DB_PASS', "XXXXXX");
2011-12-14 08:37:13 +00:00
- //define('DB_PORT', '5432'); // when neeeded, PG-only
+ include_once('/etc/tt-rss-pgsql/database.php');
+ define('DB_TYPE', $dbtype);
+ define('DB_HOST', $dbserver);
+ define('DB_USER', $dbuser);
+ define('DB_NAME', $dbname);
+ define('DB_PASS', $dbpass);
2011-12-14 08:37:13 +00:00
define('MYSQL_CHARSET', 'UTF8');
// Connection charset for MySQL. If you have a legacy database and/or experience
@@ -35,11 +35,11 @@
define('PHP_EXECUTABLE', '/usr/bin/php');
// Path to PHP executable, used for various command-line tt-rss programs
- define('LOCK_DIRECTORY', 'lock');
+ define('LOCK_DIRECTORY', '/var/lock/tt-rss');
// Directory for lockfiles, must be writable to the user you run
// daemon process or cronjobs under.
2011-12-14 08:37:13 +00:00
- define('CACHE_DIR', 'cache');
+ define('CACHE_DIR', '/var/cache/tt-rss');
// Local cache directory for RSS feed content.
define('TMP_DIRECTORY', '/tmp');