]> git.pld-linux.org Git - packages/cacti-plugin-rrdclean.git/blame - fix-paths-handling.patch
- fix rrdmove, it was totally broken, i.e created only parent dir of parent dir of...
[packages/cacti-plugin-rrdclean.git] / fix-paths-handling.patch
CommitLineData
8384670c
ER
1--- cacti-plugin-rrdclean-0.40/rrdmove.php 2010-06-19 17:24:22.000000000 +0300
2+++ cacti-plugin-rrdclean-0.40/rrdmove.php 2010-12-14 09:28:27.185477958 +0200
3@@ -117,7 +116,7 @@
4 cacti_log("RRDClean is now running on " . sizeof($file_array) . " items", true, "RRDCLEAN");
5
6 /* determine the location of the RRA files */
7- if (isset ($config["path_rra"])) {
8+ if (isset($config["rra_path"])) {
9 $rra_path = $config["rra_path"];
10 } else {
11 $rra_path = $config["base_path"] . "/rra";
12@@ -128,12 +127,12 @@
13 $rrd_archive = read_config_option("rrd_archive", TRUE);
14
15 if ($rrd_backup == "")
16- $rrd_backup = $rra_path . "/backup/";
17+ $rrd_backup = $rra_path . "/backup";
18 if ($rrd_archive == "")
19- $rrd_archive = $rra_path . "/archive/";
20+ $rrd_archive = $rra_path . "/archive";
21
22- rrdclean_create_path($rra_path . "/backup/");
23- rrdclean_create_path($rra_path . "/archive/");
24+ rrdclean_create_path($rrd_backup);
25+ rrdclean_create_path($rrd_archive);
26
27 /* now scan the files */
28 foreach ($file_array as $file) {
This page took 0.067289 seconds and 4 git commands to generate.