fix rrd.cgi and rrd archives creation (thanks Olliver for reporting)
authorNicolas Thill <nico@openwrt.org>
Mon, 15 Aug 2005 22:03:55 +0000 (22:03 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 15 Aug 2005 22:03:55 +0000 (22:03 +0000)
SVN-Revision: 1685

openwrt/package/rrdcollect/files/rrd.conf
openwrt/package/rrdcollect/files/rrdcollect.init

index d47b71a2a8b1e949ba5209a8df3d22c9d414289b..4ee13ce94f97b84bdaad31b0ef271309f023d86c 100644 (file)
@@ -16,7 +16,7 @@ RRDTOOL=/usr/bin/rrdtool
 # Location of rrdcgi
 RRDCGI=/usr/bin/rrdcgi
 # Location of generated cgi-script
-RRDCGISCRIPT=$DATA/rrd.cgi
+RRDCGISCRIPT=$DATADIR/rrd.cgi
 # Image-Path relative to webserver-root
 RRDCGIIMGPATH="/img"
 # Location of netcat (used for fetching data from rrdcollect-daemon)
index a6089ba16d29aa57a8af8ee8e0d7da060682c192..7bcd1e9335b55e7e33fed030bc435c8978274385 100644 (file)
@@ -17,7 +17,7 @@ case $1 in
   mkdir -p $IMG_D
   mkdir -p $RRD_D
   [ -x $CGI_S ] || /usr/bin/rrd.sh cgi
-  [ -n "$RRD_D" ] || /usr/bin/rrd.sh init
+  [ -n "$RRD_F" ] || /usr/bin/rrd.sh init
   $BIN $OPTIONS
   ;;
  stop)