From: Nicolas Boisselier Date: Tue, 12 Dec 2017 02:05:09 +0000 (+0000) Subject: bin/nb-update X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=23bf9d0ac4f39cab586a07435fd4051ead1bbdee;p=nb.git bin/nb-update --- diff --git a/bin/nb-update b/bin/nb-update index 78c06b45..c3ab7a40 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -6,7 +6,7 @@ # ##################################################################### NAME="$(basename "${0}")" -TMP="/tmp/$NAME.tmp" +TMP="/tmp/$NAME.$$" CLEANUP=0 [ "$1" = "-cleanup" ] && CLEANUP=1 @@ -94,9 +94,10 @@ done ##################################################################### # Update infos # -find /tmp/$NAME.infos -mmin +60 > /dev/null 2>&1 -if [ ! -e /tmp/$NAME.infos ]; then - touch /tmp/$NAME.infos +rm -f /tmp/$NAME.infos +find /tmp/$NAME.check -mmin +60 -exec rm {} \; > /dev/null 2>&1 +if [ ! -e /tmp/$NAME.check ]; then + touch /tmp/$NAME.check nb_api_insert_sys_infos >/dev/null 2>&1 fi