mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Uncommented second
$install_dir = array_pop($cur_dir); line. Issue was happening because nginx doesn't add a trailing slash to DOCUMENT_ROOT. Simple change to nginx configuration adds that so no need to edit the code here. Fixed conflict with AUTHORS.md
This commit is contained in:
@@ -23,6 +23,7 @@ Contributors to LibreNMS:
|
||||
- Stuart Henderson <stu@spacehopper.org> (sthen)
|
||||
- Filippo Giunchedi <filippo@esaurito.net> (filippog)
|
||||
- Lasse Leegaard <lasse@brandbil.dk> (lasseleegaard)
|
||||
- Mickael Marchand <mmarchand@corp.free.fr> (mmarchand)
|
||||
- Mohammad Al-Shami <mohammad@al-shami.net> (mohshami)
|
||||
|
||||
[1]: http://observium.org/ "Observium web site"
|
||||
|
||||
@@ -33,7 +33,7 @@ include("../includes/defaults.inc.php");
|
||||
// Work out the install directory
|
||||
$cur_dir = explode('/',$_SERVER['DOCUMENT_ROOT']);
|
||||
$install_dir = array_pop($cur_dir);
|
||||
#$install_dir = array_pop($cur_dir);
|
||||
$install_dir = array_pop($cur_dir);
|
||||
$install_dir = implode('/',$cur_dir);
|
||||
$config['install_dir'] = $install_dir;
|
||||
$config['log_dir'] = $install_dir.'/logs';
|
||||
|
||||
Reference in New Issue
Block a user