]> git.pld-linux.org Git - packages/cacti.git/commitdiff
- webroot (needed for spine) is already config[base_path]
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Oct 2008 14:04:35 +0000 (14:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-webroot.patch -> 1.1
    cacti.spec -> 1.86

cacti-webroot.patch [new file with mode: 0644]
cacti.spec

diff --git a/cacti-webroot.patch b/cacti-webroot.patch
new file mode 100644 (file)
index 0000000..ec42410
--- /dev/null
@@ -0,0 +1,13 @@
+--- /poller.php~       2008-10-05 16:54:15.000000000 +0300
++++ /poller.php        2008-10-05 16:57:05.946911539 +0300
+@@ -181,7 +181,9 @@
+       $last_host           = 0;
+       /* update web paths for the poller */
+-      db_execute("replace into settings (name,value) values ('path_webroot','" . addslashes(($config["cacti_server_os"] == "win32") ? strtr(strtolower(substr(dirname(__FILE__), 0, 1)) . substr(dirname(__FILE__), 1),"\\", "/") : dirname(__FILE__)) . "')");
++//    $path_webroot = ($config["cacti_server_os"] == "win32") ? strtr(strtolower(substr(dirname(__FILE__), 0, 1)) . substr(dirname(__FILE__), 1),"\\", "/") : dirname(__FILE__);
++      $path_webroot = $config['base_path'];
++      db_execute("replace into settings (name,value) values ('path_webroot','" .  addslashes($path_webroot) . "')");
+       /* obtain some defaults from the database */
+       $poller      = read_config_option("poller_type");
index 7c319c48cee8ca21dcc97f39f7a618f94826120c..d102e5f0ef4fd0247b3af6b28bd7f604bf4f7e4f 100644 (file)
@@ -20,6 +20,7 @@ Patch3:               http://www.cacti.net/downloads/patches/0.8.7b/reset_each_patch.patch
 Patch4:                %{name}-config.patch
 Patch5:                %{name}-adodb.patch
 Patch6:                %{name}-ioerror.patch
+Patch7:                %{name}-webroot.patch
 URL:           http://www.cacti.net/
 BuildRequires: rpm-perlprov
 BuildRequires: sed >= 4.0
@@ -99,6 +100,7 @@ HTML Documentation for Cacti.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 mkdir -p sql
 mv *.sql sql
This page took 0.125448 seconds and 4 git commands to generate.