Add workaround patch to set $url_path for debian
authorNeutron Soutmun <neo.neutron@gmail.com>
Fri, 16 Dec 2011 03:44:34 +0000 (10:44 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Fri, 16 Dec 2011 03:44:34 +0000 (10:44 +0700)
* debian/patches/debian-url-path.patch:
  - Add workaround patch to set $url_path for debian
* debian/patches/series:
  - Add patch to series.

debian/patches/debian-url-path.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/debian-url-path.patch b/debian/patches/debian-url-path.patch
new file mode 100644 (file)
index 0000000..94ed478
--- /dev/null
@@ -0,0 +1,17 @@
+Description: Workaround to set the $url_path to debian installed location
+Author: Neutron Soutmun <neo.neutron@gmail.com>
+Forwarded: not-needed.
+
+Index: b/include/config.php
+===================================================================
+--- a/include/config.php       2011-12-16 10:38:03.259289530 +0700
++++ b/include/config.php       2011-12-16 10:38:40.483534450 +0700
+@@ -35,7 +35,7 @@
+    ex: if your cacti install as at http://serverip/cacti/ this
+    would be set to /cacti/
+ */
+-$url_path = "/";
++$url_path = "/cacti/";
+ /* Default session name - Session name must contain alpha characters */
+ #$cacti_session_name = "Cacti";
index f66fd06..9c886db 100644 (file)
@@ -13,3 +13,4 @@ poller_interval.patch
 563955_local_data_id.patch
 cacti-plugin-0.8.7g-PA-v2.9.patch
 cacti-pa-sql.patch
+debian-url-path.patch