From 20beb5ec34002e5afa6aa2030d71de695a8aa594 Mon Sep 17 00:00:00 2001 From: laf Date: Sat, 29 Mar 2014 20:06:26 +0000 Subject: [PATCH] Added updating of sql database when daily updates are run. Also added a small doc showing how to manually update --- daily.sh | 1 + doc/UPDATING.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 doc/UPDATING.md diff --git a/daily.sh b/daily.sh index 3d612727f..a85400d44 100644 --- a/daily.sh +++ b/daily.sh @@ -2,6 +2,7 @@ if [ $(php daily.php -f update) -eq 1 ]; then git pull --no-edit --quiet + php includes/sql-schema/update.php fi php daily.php -f syslog diff --git a/doc/UPDATING.md b/doc/UPDATING.md new file mode 100644 index 000000000..416b65cc6 --- /dev/null +++ b/doc/UPDATING.md @@ -0,0 +1,12 @@ +## Updating your install ## + +LibreNMS by default performs updates on a daily basis. This can be disabled by ensuring: + + $config['update'] = 0; + +Is no longer commented out. If you would like to perform a manual update then you can do this by running the following commands: + + git pull --no-edit --quiet + php includes/sql-schema/update.php + +This will update both the core LibreNMS files but also update the database structure if updates are available.