[Orca-checkins] r361 - trunk/orca/lib/Orca

Blair Zajac blair at orcaware.com
Mon Jun 28 21:08:24 PDT 2004


Author: blair
Date: Mon Jun 28 21:06:02 2004
New Revision: 361

Modified:
   trunk/orca/lib/Orca/Config.pm
Log:
* lib/Orca/Config.pm
  (check_config):
    Return a validation error on the configuration file if html_dir
    and rrd_dir are identical.


Modified: trunk/orca/lib/Orca/Config.pm
==============================================================================
--- trunk/orca/lib/Orca/Config.pm	(original)
+++ trunk/orca/lib/Orca/Config.pm	Mon Jun 28 21:06:02 2004
@@ -406,6 +406,14 @@
     }
   }
 
+  # Having a single directory used for the html_dir and the rrd_dir is
+  # not a supported configuration.
+  if ($config_global{html_dir} eq $config_global{rrd_dir}) {
+    my $dir = $config_global{html_dir};
+    warn "$0: error: 'html_dir' and 'rrd_dir' '$dir' are identical.\n";
+    ++$number_errors;
+  }
+
   # Set any optional global parameters to '' if it isn't defined in
   # the configuration file.
   foreach my $option (@cc_default_is_false_global) {



More information about the Orca-checkins mailing list