summaryrefslogtreecommitdiffstats
path: root/etc/inc/rrd.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-08-05 10:11:31 -0400
committerjim-p <jimp@pfsense.org>2010-08-05 10:12:14 -0400
commit3d83f02e958a52e35cf098a3cd3f7031f53d69a0 (patch)
treedd1200049711b86cb498e587ed6dfc15e73ac574 /etc/inc/rrd.inc
parent537bf7b37d3cdc8dc644bc70cbfd292f2e849459 (diff)
downloadpfsense-3d83f02e958a52e35cf098a3cd3f7031f53d69a0.zip
pfsense-3d83f02e958a52e35cf098a3cd3f7031f53d69a0.tar.gz
When creating /var/db/rrd, make sure it's writable by wheel, and owned by nobody, or apinger can't create the quality graphs.
Diffstat (limited to 'etc/inc/rrd.inc')
-rw-r--r--etc/inc/rrd.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc
index 356037e..4881706 100644
--- a/etc/inc/rrd.inc
+++ b/etc/inc/rrd.inc
@@ -226,8 +226,9 @@ function enable_rrd_graphing() {
if (isset ($config['rrd']['enable'])) {
/* create directory if needed */
- if (!is_dir("$rrddbpath")) {
- mkdir("$rrddbpath", 0755);
+ if (!is_dir($rrddbpath)) {
+ mkdir($rrddbpath, 0775);
+ chown($rrddbpath, "nobody");
}
if ($g['booting']) {
OpenPOWER on IntegriCloud