From 242148acdbb890277236ec910d0a19afabc6f4db Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Thu, 14 Dec 2017 21:56:21 +0000 Subject: [PATCH] Also update stats on running netdisco-deploy --- Changes | 6 ++++++ bin/netdisco-deploy | 5 +++++ lib/App/Netdisco.pm | 4 +--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 19324fb9..718087b5 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2.037000 - 2017-12-14 + + [ENHANCEMENTS] + + * Also update stats on running netdisco-deploy + 2.037000 - 2017-12-14 [NEW FEATURES] diff --git a/bin/netdisco-deploy b/bin/netdisco-deploy index bb34967e..e893198a 100755 --- a/bin/netdisco-deploy +++ b/bin/netdisco-deploy @@ -139,6 +139,11 @@ sub deploy_db { say 'DB schema update complete.'; print color 'reset'; + system 'netdisco-do stats >/dev/null 2>&1'; + print color 'bold blue'; + say 'Statistics updated.'; + print color 'reset'; + if (not setting('safe_password_store')) { say ''; print color 'bold red'; diff --git a/lib/App/Netdisco.pm b/lib/App/Netdisco.pm index 13f577d5..43a7b352 100644 --- a/lib/App/Netdisco.pm +++ b/lib/App/Netdisco.pm @@ -219,13 +219,11 @@ Then the process below should be run for each installation: # apply database schema updates, update MIBs and Vendor MACs ~/bin/netdisco-deploy - ~/bin/netdisco-do stats # restart web service (if you run it) ~/bin/netdisco-web restart - # stop old daemon and start new backend worker (wherever you run them) - ~/bin/netdisco-daemon stop + # restart the backend workers (wherever you run them) ~/bin/netdisco-backend restart =head1 Tips and Tricks