diff --git a/infra/seed-nodes/stage-v4.sh b/infra/seed-nodes/stage-v4.sh index c5cb4d2c..9c69919b 100755 --- a/infra/seed-nodes/stage-v4.sh +++ b/infra/seed-nodes/stage-v4.sh @@ -30,8 +30,8 @@ remote_status() { systemctl is-active '"$BUILD_UNIT"' >/dev/null 2>&1 && s="running (unit active)" last=""; [ -f /root/v4/build.log ] && last=$(grep -E "build running|build finished|FAILED|DONE|error\[" /root/v4/build.log | tail -1) inst="not installed"; [ -x /opt/igneum/v4/bin/igneumd ] && inst="installed $(head -1 /root/v4/out/version.txt 2>/dev/null)" - u4=$(systemctl is-enabled igneumd-v4 2>/dev/null || echo absent); a4=$(systemctl is-active igneumd-v4 2>/dev/null || true) - u3=$(systemctl is-enabled igneumd 2>/dev/null || echo absent); a3=$(systemctl is-active igneumd 2>/dev/null || true) + u4=$(systemctl is-enabled igneumd-v4 2>/dev/null || true); [ -n "$u4" ] || u4=absent; a4=$(systemctl is-active igneumd-v4 2>/dev/null || true) + u3=$(systemctl is-enabled igneumd 2>/dev/null || true); [ -n "$u3" ] || u3=absent; a3=$(systemctl is-active igneumd 2>/dev/null || true) echo "build=$s | $last | v4: $inst, unit igneumd-v4 $u4/$a4 | v3: unit igneumd $u3/$a3"' }