Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:aiges:test
nagvis
nagvis-config.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nagvis-config.patch of Package nagvis
Index: nagvis-1.9.20/share/server/core/defines/global.php =================================================================== --- nagvis-1.9.20.orig/share/server/core/defines/global.php +++ nagvis-1.9.20/share/server/core/defines/global.php @@ -75,11 +75,11 @@ define('DEBUGFILE', '../../../var/nagvis // The last value wins. // // Path to the main configuration file -define('CONST_MAINCFG', '../../../etc/nagvis.ini.php'); -define('CONST_MAINCFG_CACHE', '../../../var/nagvis-conf'); +define('CONST_MAINCFG', '/etc/nagvis/nagvis.ini.php'); +define('CONST_MAINCFG_CACHE', '/var/cache/nagvis/nagvis-conf'); // Path to the main configuration conf.d directory -define('CONST_MAINCFG_DIR', '../../../etc/conf.d'); +define('CONST_MAINCFG_DIR', '/etc/nagvis/conf.d'); // The directory below the NagVis root which is shared by the webserver define('HTDOCS_DIR', 'share'); Index: nagvis-1.9.20/share/server/core/classes/GlobalMainCfg.php =================================================================== --- nagvis-1.9.20.orig/share/server/core/classes/GlobalMainCfg.php +++ nagvis-1.9.20/share/server/core/classes/GlobalMainCfg.php @@ -1625,11 +1625,11 @@ class GlobalMainCfg { * @author Lars Michelsen <lm@larsmichelsen.com> */ private function setPathsByBase($base, $htmlBase) { - $this->validConfig['paths']['cfg']['default'] = $base.'etc/'; - $this->validConfig['paths']['mapcfg']['default'] = $base.'etc/maps/'; - $this->validConfig['paths']['geomap']['default'] = $base.'etc/geomap'; - $this->validConfig['paths']['profiles']['default'] = $base.'etc/profiles'; - $this->validConfig['global']['authorisation_group_perms_file']['default'] = $base.'etc/perms.db'; + $this->validConfig['paths']['cfg']['default'] = '/etc/nagvis/'; + $this->validConfig['paths']['mapcfg']['default'] = '/etc/nagvis/maps/'; + $this->validConfig['paths']['geomap']['default'] = '/etc/nagvis/geomap'; + $this->validConfig['paths']['profiles']['default'] = '/etc/nagvis/profiles'; + $this->validConfig['global']['authorisation_group_perms_file']['default'] = '/etc/nagvis/perms.db'; $this->validConfig['paths']['var']['default'] = $base.'var/'; $this->validConfig['paths']['sharedvar']['default'] = $base.HTDOCS_DIR.'/var/';
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor