]> git.nbdom.net Git - nb.git/commitdiff
rename /run/nb-update-nb_api_post_sys_infos.lock to /run/nb-update-nb_api_post_hosts_...
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 18 Apr 2023 00:31:26 +0000 (02:31 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 18 Apr 2023 00:31:26 +0000 (02:31 +0200)
bin/nb-update

index cd8c3b59e56e54c5f7d8307acc626e66b0d64e84..a048797b5c9c9dfbd288e6d9effef7f0a8d765ff 100755 (executable)
@@ -145,9 +145,9 @@ done
 # Update infos
 #
 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*4)) -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
+find /run/$NAME-nb_api_post_hosts_infos.lock -mmin +$((60*4)) -exec rm {} \; >/dev/null 2>&1
+if [ ! -e /run/$NAME-nb_api_post_hosts_infos.lock ]; then
+       touch /run/$NAME-nb_api_post_hosts_infos.lock
        echo ">Post sys infos"
        nb_api_post_hosts_infos | sed -e 's/^/  /; s/'$'\t''/: /'
        echo