diff options
| author | Mark Felder <feld@FreeBSD.org> | 2018-01-18 20:21:42 +0000 |
|---|---|---|
| committer | Mark Felder <feld@FreeBSD.org> | 2018-01-18 20:21:42 +0000 |
| commit | 4325c04e1b0c68ffb80edf8943370a7c90ce3f6c (patch) | |
| tree | dcb47bde03a694f99ce3d419f277188877f393b2 /net-mgmt/librenms/files/patch-html_install.php | |
| parent | - Update ntopng to 3.2.2018.01.12 (diff) | |
net-mgmt/librenms: Update to 1.35, many improvements
Improvements:
- All files should be owned root:wheel except logs and rrd which need to be writable by the app
- Add missing php posix extension
- Do not install config.php by default. This breaks the install process which won't run if this file exists
- Clean up automatic PLIST creation: don't install .orig or .bak files, don't add @dir as they aren't needed
- Patch LibreNMS to make /validate/ page not produce warnings about files not being writable (for git updates)
- Remove the Updates validation check altogether as we won't be using git to update
- Patch the User validation check to only check the logs and rrd dir and ensure the correct user owns them
- Change the default user in the generated config to "www"
- Patch the File Lock code to put the lock file in /tmp and not in the WWWDIR which should not be writable
- Update message in installer to use WWWDIR as suggested path for config.php
- Use shebangfix instead of patch where applicable
- Fix APACHEMOD port option and declaration of the USES=php
PR: 225161
MFH: 2018Q1
Differential Revision: https://reviews.freebsd.org/D13907
Notes
Notes:
svn path=/head/; revision=459372
Diffstat (limited to 'net-mgmt/librenms/files/patch-html_install.php')
| -rw-r--r-- | net-mgmt/librenms/files/patch-html_install.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mgmt/librenms/files/patch-html_install.php b/net-mgmt/librenms/files/patch-html_install.php new file mode 100644 index 000000000000..9973465e2a32 --- /dev/null +++ b/net-mgmt/librenms/files/patch-html_install.php @@ -0,0 +1,20 @@ +--- html/install.php.orig 2017-12-31 20:48:36 UTC ++++ html/install.php +@@ -364,7 +364,7 @@ $config_file = <<<"EOD" + + // This is the user LibreNMS will run as + //Please ensure this user is created and has the correct permissions to your install +-\$config['user'] = 'librenms'; ++\$config['user'] = 'www'; + + ### Memcached config - We use this to store realtime usage + \$config\['memcached'\]\['enable'\] = FALSE; +@@ -395,7 +395,7 @@ $config_file = <<<"EOD" + #\$config\['nets'\]\[\] = "192.168.0.0/16"; + + # Uncomment the next line to disable daily updates +-#\$config\['update'\] = 0; ++\$config\['update'\] = 0; + EOD; + + if (!file_exists("../config.php")) { |
