From: Nicolas Boisselier Date: Tue, 12 Dec 2017 01:53:16 +0000 (+0000) Subject: bin/nb-update X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=71034b7a81ad837b4f7d3244d8c78bd43f987f6d;p=nb.git bin/nb-update --- diff --git a/bin/nb-update b/bin/nb-update index 50e90359..78c06b45 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -91,6 +91,15 @@ for repo in $(nb_repos); do done +##################################################################### +# Update infos +# +find /tmp/$NAME.infos -mmin +60 > /dev/null 2>&1 +if [ ! -e /tmp/$NAME.infos ]; then + touch /tmp/$NAME.infos + nb_api_insert_sys_infos >/dev/null 2>&1 +fi + ##################################################################### # End # @@ -100,10 +109,4 @@ if [ "$ex" = "0" ]; then else printf ">ERR\n" fi - -find /tmp/$NAME.infos -mmin +60 > /dev/null 2>&1 -if [ ! -e /tmp/$NAME.infos ]; then - touch /tmp/$NAME.infos - nb_api_insert_sys_infos >/dev/null 2>&1 -fi exit $ex