diff --git a/cmdeploy/src/cmdeploy/cmdeploy.py b/cmdeploy/src/cmdeploy/cmdeploy.py index 274b6465..737ddc4e 100644 --- a/cmdeploy/src/cmdeploy/cmdeploy.py +++ b/cmdeploy/src/cmdeploy/cmdeploy.py @@ -109,14 +109,15 @@ def run_cmd(args, out): try: retcode = out.check_call(cmd, env=env) if retcode == 0: - print("\nYou can try out the relay by talking to this echo bot: ") - sshexec = SSHExec(args.config.mail_domain, verbose=args.verbose) - print( - sshexec( - call=remote.rshell.shell, - kwargs=dict(command="cat /var/lib/echobot/invite-link.txt"), + if not args.disable_mail: + print("\nYou can try out the relay by talking to this echo bot: ") + sshexec = SSHExec(args.config.mail_domain, verbose=args.verbose) + print( + sshexec( + call=remote.rshell.shell, + kwargs=dict(command="cat /var/lib/echobot/invite-link.txt"), + ) ) - ) out.green("Deploy completed, call `cmdeploy dns` next.") elif not remote_data["acme_account_url"]: out.red("Deploy completed but letsencrypt not configured")