From 70bc7ad3dbe6febfb3a302373a84f0f96cac4738 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 9 Oct 2026 14:26:19 +0200 Subject: [PATCH] asks: the live acceptance reads root-not-free, and gives the bot token at the controller's terminal --- asks/live-acceptance.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/asks/live-acceptance.sh b/asks/live-acceptance.sh index 710688e..e47f567 100644 --- a/asks/live-acceptance.sh +++ b/asks/live-acceptance.sh @@ -16,15 +16,15 @@ set -eu mc=${MESH_CONTROLLER:-mesh-controller} stop() { echo "NOT ACCEPTED: $*"; exit 1; } -echo "1. Nothing open says an agent can become root where the router or Telegram runs (agent-root)." -if $mc conditions | grep -q 'agent-root'; then - $mc conditions | grep 'agent-root' +echo "1. Nothing open says the router's or Telegram's machine is not root-free (root-not-free, agent-root)." +if $mc conditions | grep -q 'root-not-free\|agent-root'; then + $mc conditions | grep 'root-not-free\|agent-root' stop "while an agent can become root there, Telegram only acknowledges; close it first (ADR 0266, ADR 0268)" fi echo "2. The Telegram channel holds a working bot token and its updates arrive." tg=$($mc ask telegram telegram_status) || stop "the telegram module does not answer" -echo "$tg" | grep -q '"can_send": *true' || { echo "$tg"; stop "Telegram cannot send now (why_not above): give the bot token again with give"; } +echo "$tg" | grep -q '"can_send": *true' || { echo "$tg"; stop "Telegram cannot send now (why_not above): give the bot token again, at this terminal: $mc secret accept telegram telegram-token, then push "; } echo "3. One Telegram account is linked as the operator, and its hour has passed." ids=$($mc ask messenger messenger_identities) || stop "the router does not answer"