From c8806beaca93fad6b0e4516e4bb39a80f1b6e727 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 16 Dec 2017 10:51:28 +0000 Subject: [PATCH] cleaner way to update stats after deploy --- bin/netdisco-deploy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/netdisco-deploy b/bin/netdisco-deploy index e893198a..e7106907 100755 --- a/bin/netdisco-deploy +++ b/bin/netdisco-deploy @@ -40,6 +40,7 @@ use App::Netdisco; use Dancer ':script'; use Dancer::Plugin::DBIC 'schema'; use Dancer::Plugin::Passphrase; +use App::Netdisco::Util::Statistics (); info "App::Netdisco $App::Netdisco::VERSION loaded."; @@ -139,7 +140,7 @@ sub deploy_db { say 'DB schema update complete.'; print color 'reset'; - system 'netdisco-do stats >/dev/null 2>&1'; + App::Netdisco::Util::Statistics::update_stats(); print color 'bold blue'; say 'Statistics updated.'; print color 'reset';