mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
681c994ca1
* Tweak updating page * Cleanup docs
42 lines
1.1 KiB
Markdown
42 lines
1.1 KiB
Markdown
# Updating an Install
|
|
|
|
By default, LibreNMS is set to automatically update. If you have
|
|
disabled this feature then you can perform a manual update.
|
|
|
|
## Manual update
|
|
|
|
If you would like to perform a manual update then you can do this by
|
|
running the following command as the `librenms` user:
|
|
|
|
`./daily.sh`
|
|
|
|
This will update both the core LibreNMS files but also update the database
|
|
structure if updates are available.
|
|
|
|
## Advanced users
|
|
|
|
If you absolutely must update manually without using `./daily.sh` then
|
|
you can do so by running the following commands:
|
|
|
|
```bash
|
|
cd /opt/librenms
|
|
git pull
|
|
./scripts/composer_wrapper.php install --no-dev
|
|
php includes/sql-schema/update.php
|
|
./validate.php
|
|
```
|
|
|
|
## Disabling automatic updates
|
|
|
|
LibreNMS by default performs updates on a daily basis.
|
|
This can be disabled in the WebUI Global Settings under System -> Updates, or using lnms
|
|
|
|
!!! warning
|
|
You should never remove daily.sh from the cronjob!
|
|
This does database cleanup and other processes in addition to updating.
|
|
|
|
!!! setting "settings/system/updates"
|
|
```bash
|
|
lnms config:set update false
|
|
```
|