2016-08-24 08:12:20 +01:00
|
|
|
source: General/Updating.md
|
2018-10-27 23:04:34 +01:00
|
|
|
path: blob/master/doc/
|
2014-03-29 20:06:26 +00:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
By default, LibreNMS is set to automatically update. If you have
|
|
|
|
disabled this feature then you can perform a manual update.
|
2017-10-02 21:36:22 +01:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
# Manual update
|
2017-10-02 21:36:22 +01:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
If you would like to perform a manual update then you can do this by
|
|
|
|
running the following command as the `librenms` user:
|
2014-03-29 20:06:26 +00:00
|
|
|
|
2016-08-26 00:40:11 +01:00
|
|
|
`./daily.sh`
|
2014-03-29 20:06:26 +00:00
|
|
|
|
2015-03-09 08:09:53 +10:00
|
|
|
This will update both the core LibreNMS files but also update the database
|
|
|
|
structure if updates are available.
|
2016-08-11 09:07:13 -05:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
# Advanced users
|
|
|
|
|
|
|
|
If you absolutely must update manually without using `./daily.sh` then
|
|
|
|
you can do so by running the following commands:
|
|
|
|
|
2017-05-03 14:48:23 +01:00
|
|
|
```bash
|
|
|
|
cd /opt/librenms
|
|
|
|
git pull
|
2018-02-08 15:46:55 -06:00
|
|
|
composer install --no-dev
|
|
|
|
./build-base.php
|
|
|
|
./validate.php
|
2017-05-03 14:48:23 +01:00
|
|
|
```
|
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
You should continue to run daily.sh. This does database cleanup and
|
|
|
|
other processes in addition to updating. You can disable the daily.sh
|
|
|
|
update process as described below.
|
|
|
|
|
|
|
|
# Disabling automatic updates
|
2018-02-08 15:46:55 -06:00
|
|
|
|
2017-05-03 14:48:23 +01:00
|
|
|
LibreNMS by default performs updates on a daily basis. This can be disabled by setting:
|
2016-08-11 09:07:13 -05:00
|
|
|
|
2016-08-26 00:40:11 +01:00
|
|
|
`$config['update'] = 0;`
|