summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 119de66)
raw | patch | inline | side by side (parent: 119de66)
author | Florian Forster <ff@octo.it> | |
Sat, 19 Jun 2010 07:17:59 +0000 (09:17 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 19 Jun 2010 07:17:59 +0000 (09:17 +0200) |
… rather than a hard-coded default.
src/graph_config.c | patch | blob | history |
diff --git a/src/graph_config.c b/src/graph_config.c
index 94dd440edc75d25a9242b6cfc4d0f511ecee2549..2a2b59d7432648f429c552f3493748c127a7a20e 100644 (file)
--- a/src/graph_config.c
+++ b/src/graph_config.c
#include "oconfig.h"
#include "common.h"
-#define CONFIG_FILE "/usr/lib/cgi-bin/octo/collection.conf"
+#ifndef CONFIGFILE
+# define CONFIGFILE "/etc/collection.conf"
+#endif
time_t last_read_mtime = 0;
{
oconfig_item_t *ci;
- ci = oconfig_parse_file (CONFIG_FILE);
+ ci = oconfig_parse_file (CONFIGFILE);
if (ci == NULL)
return (-1);
int status;
memset (&statbuf, 0, sizeof (statbuf));
- status = stat (CONFIG_FILE, &statbuf);
+ status = stat (CONFIGFILE, &statbuf);
if (status != 0)
return (0);