Lines 1-6
Link Here
|
1 |
--- html/install.php.orig 2018-08-04 20:07:12 UTC |
1 |
--- html/install.php.orig 2018-10-17 10:33:28 UTC |
2 |
+++ html/install.php |
2 |
+++ html/install.php |
3 |
@@ -357,7 +357,7 @@ $config_file = <<<"EOD" |
3 |
@@ -358,7 +358,7 @@ $config_file = <<<"EOD" |
4 |
|
4 |
|
5 |
// This is the user LibreNMS will run as |
5 |
// This is the user LibreNMS will run as |
6 |
//Please ensure this user is created and has the correct permissions to your install |
6 |
//Please ensure this user is created and has the correct permissions to your install |
Lines 9-15
Link Here
|
9 |
|
9 |
|
10 |
### Locations - it is recommended to keep the default |
10 |
### Locations - it is recommended to keep the default |
11 |
#\$config\['install_dir'\] = "$install_dir"; |
11 |
#\$config\['install_dir'\] = "$install_dir"; |
12 |
@@ -383,8 +383,8 @@ $config_file = <<<"EOD" |
12 |
@@ -384,15 +384,15 @@ $config_file = <<<"EOD" |
13 |
#\$config\['nets'\]\[\] = "192.168.0.0/16"; |
13 |
#\$config\['nets'\]\[\] = "192.168.0.0/16"; |
14 |
|
14 |
|
15 |
# Update configuration |
15 |
# Update configuration |
Lines 20-22
Link Here
|
20 |
EOD; |
20 |
EOD; |
21 |
|
21 |
|
22 |
if (!file_exists("../config.php")) { |
22 |
if (!file_exists("../config.php")) { |
|
|
23 |
$conf = fopen("../config.php", 'w'); |
24 |
if ($conf != false) { |
25 |
if (fwrite($conf, "<?php\n") === false) { |
26 |
- echo("<div class='alert alert-danger'>We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)</div>"); |
27 |
+ echo("<div class='alert alert-danger'>We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /usr/local/www/librenms/)</div>"); |
28 |
echo("<pre><?php\n".stripslashes($config_file)."</pre>"); |
29 |
} else { |
30 |
$config_file = stripslashes($config_file); |
31 |
@@ -400,7 +400,7 @@ if (!file_exists("../config.php")) { |
32 |
echo("<div class='alert alert-success'>The config file has been created</div>"); |
33 |
} |
34 |
} else { |
35 |
- echo("<div class='alert alert-danger'>We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /opt/librenms/)</div>"); |
36 |
+ echo("<div class='alert alert-danger'>We couldn't create the config.php file, please create this manually before continuing by copying the below into a config.php in the root directory of your install (typically /usr/local/www/librenms/)</div>"); |
37 |
echo("<pre><?php\n".stripslashes($config_file)."</pre>"); |
38 |
} |
39 |
} |