]> git.pld-linux.org Git - packages/cacti-spine.git/blame - cacti-spine-paths.patch
- add 3 official patches
[packages/cacti-spine.git] / cacti-spine-paths.patch
CommitLineData
a7b5aa62
ER
1--- cacti-spine-0.8.7a/spine.h~ 2007-11-26 05:40:21.000000000 +0200
2+++ cacti-spine-0.8.7a/spine.h 2008-10-05 05:33:49.545548298 +0300
9d56b56e 3@@ -136,21 +136,18 @@
a7b5aa62
ER
4 #define MAX_SIMULTANEOUS_SCRIPTS 20
5
6 /* locations to search for the config file */
9d56b56e 7-#define CONFIG_PATHS 4
a7b5aa62
ER
8-#define CONFIG_PATH_1 ""
9-#define CONFIG_PATH_2 "/etc/"
9d56b56e
ER
10-#define CONFIG_PATH_3 "/etc/cacti/"
11-#define CONFIG_PATH_4 "../etc/"
a7b5aa62
ER
12+#define CONFIG_PATHS 1
13+#define CONFIG_PATH_1 "/etc/webapps/cacti/"
14
15 /* config file defaults */
16 #define DEFAULT_CONF_FILE "spine.conf"
17 #define DEFAULT_THREADS 5
18 #define DEFAULT_DB_HOST "localhost"
19 #define DEFAULT_DB_DB "cacti"
20-#define DEFAULT_DB_USER "cactiuser"
21-#define DEFAULT_DB_PASS "cactiuser"
22+#define DEFAULT_DB_USER "mysql"
23+#define DEFAULT_DB_PASS ""
24 #define DEFAULT_DB_PORT 3306
25-#define DEFAULT_LOGFILE "/var/www/html/cacti/log/cacti.log"
26+#define DEFAULT_LOGFILE "/var/log/cacti/cacti.log"
27 #define DEFAULT_TIMEOUT 294000000
28
29 /* threads constants */
30--- cacti-spine-0.8.7a/util.c~ 2007-11-26 05:40:21.000000000 +0200
31+++ cacti-spine-0.8.7a/util.c 2008-10-05 05:35:03.349764684 +0300
9d56b56e 32@@ -462,9 +462,6 @@
a7b5aa62
ER
33 STRNCOPY(set.dbpass, DEFAULT_DB_PASS);
34
35 STRNCOPY(config_paths[0], CONFIG_PATH_1);
36- STRNCOPY(config_paths[1], CONFIG_PATH_2);
37- STRNCOPY(config_paths[2], CONFIG_PATH_3);
9d56b56e
ER
38- STRNCOPY(config_paths[3], CONFIG_PATH_4);
39
a7b5aa62
ER
40 set.log_destination = LOGDEST_FILE;
41 }
9d56b56e
ER
42--- cacti-spine-0.8.7a/spine.conf~ 2007-11-26 05:40:21.000000000 +0200
43+++ cacti-spine-0.8.7a/spine.conf 2008-10-05 05:41:07.495832134 +0300
a7b5aa62
ER
44@@ -28,8 +28,8 @@
45 # | DB_User The user to access the database, typically 'cactiuser' |
46 # | DB_Pass The password for the Cacti user |
47 # +-------------------------------------------------------------------------+
48-DB_Host localhost
49-DB_Database cacti
50-DB_User cactiuser
51-DB_Pass cactiuser
52-DB_Port 3306
53\ No newline at end of file
54+#DB_Host localhost
55+#DB_Database cacti
56+#DB_User mysql
57+#DB_Pass
58+#DB_Port 3306
This page took 0.128866 seconds and 4 git commands to generate.