From 121b6f9fad078be8e9d7f6174faf3d5efd9cb4f6 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 20 Apr 2024 23:09:15 +0200 Subject: [PATCH] || { } or command must be a function --- RUNTIME/DRAGON_p2p_ssh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RUNTIME/DRAGON_p2p_ssh.sh b/RUNTIME/DRAGON_p2p_ssh.sh index 8e987ffe..63cc298a 100755 --- a/RUNTIME/DRAGON_p2p_ssh.sh +++ b/RUNTIME/DRAGON_p2p_ssh.sh @@ -134,7 +134,7 @@ fi ncrunning=$(ps axf --sort=+utime | grep -w 'node_exporter' | grep -v -E 'color=auto|grep' | tail -n 1 | xargs | cut -d " " -f 1) [[ $ncrunning ]] \ && echo "RESTARTING" && kill -HUP $ncrunning \ - || /usr/local/bin/node_exporter & + || { /usr/local/bin/node_exporter & }