From 3d120ed537d3be5f0954b55d9d53ca39efc51cf2 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 10 Mar 2019 02:34:34 +0000 Subject: [PATCH] bin/nb-update --- bin/nb-update | 2 +- etc/profile.d/nb.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/nb-update b/bin/nb-update index 4c07af56..86da6ec4 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -137,7 +137,7 @@ rm -f /tmp/$NAME.infos /tmp/$NAME.check /run/$NAME-nb_post_sys_infos.lock find /run/$NAME-nb_api_post_sys_infos.lock -mmin +60 -exec rm {} \; >/dev/null 2>&1 if [ ! -e /run/$NAME-nb_api_post_sys_infos.lock ]; then touch /run/$NAME-nb_api_post_sys_infos.lock - nb_api_post_hosts_infos 2>/dev/null + nb_api_post_hosts_infos >/dev/null 2>&1 fi ##################################################################### diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index 98f99319..0a174f08 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -109,7 +109,7 @@ nb_api_table_post() { } nb_api_post_host_info() { - [ $# = 0 ] && echo "Usage: nb_api_post_host_info key=? val=?" && return 1 + [ $# = 0 ] && echo "Usage: nb_api_post_host_info key=? val=?" 1>&2 && return 1 local host=$(hostname) [ -z "$host" ] && host=$(hostname -f) nb_api_table_post host_info "host=$host" "key=$1" "val=${i[*]:1}" -- 2.47.3