mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #2863 from laf/docs-log
Updated install docs so users do not chown logs directory
This commit is contained in:
@@ -107,7 +107,6 @@ First, create and chown the `rrd` directory and create the `logs` directory:
|
||||
|
||||
mkdir rrd logs
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chown www-data:www-data logs
|
||||
chmod 775 rrd
|
||||
|
||||
> NOTE: If you're not running Ubuntu or Debian, you will need to change `www-data` to the user and group which run the Apache web server.
|
||||
|
||||
@@ -265,12 +265,6 @@ First, create and chown the `rrd` directory and create the `logs` directory
|
||||
mkdir rrd logs
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chmod 775 rrd
|
||||
|
||||
# For HTTPd (Apache):
|
||||
chown apache:apache logs
|
||||
|
||||
# For Nginx:
|
||||
chown nginx:nginx logs
|
||||
```
|
||||
|
||||
> If you're planing on running rrdcached, make sure that the path is also chmod'ed to 775 and chown'ed to librenms:librenms.
|
||||
|
||||
@@ -108,7 +108,6 @@ First, create and chown the `rrd` directory and create the `logs` directory
|
||||
|
||||
mkdir rrd logs
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chown www-data:www-data logs
|
||||
chmod 775 rrd
|
||||
|
||||
> NOTE: If you're planing on running rrdcached, make sure that the path is also chmod'ed to 775 and chown'ed to librenms:librenms.
|
||||
|
||||
@@ -104,8 +104,7 @@ if (class_exists('Net_IPv6') === false) {
|
||||
if (isset($config['user'])) {
|
||||
$tmp_user = $config['user'];
|
||||
$tmp_dir = $config['install_dir'];
|
||||
$tmp_log = $config['log_dir'];
|
||||
$find_result = rtrim(`find $tmp_dir \! -user $tmp_user -not -path $tmp_log`);
|
||||
$find_result = rtrim(`find $tmp_dir \! -user $tmp_user`);
|
||||
if (!empty($find_result)) {
|
||||
// This isn't just the log directory, let's print the list to the user
|
||||
$files = explode(PHP_EOL, $find_result);
|
||||
|
||||
Reference in New Issue
Block a user