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"