From 4c4958df6a068343663914adf15af934ce4ee2be Mon Sep 17 00:00:00 2001 From: oiseauroch Date: Fri, 23 Dec 2022 12:15:47 +0100 Subject: [PATCH] improve mail --- scripts/install | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 21e0fd6..1602d21 100755 --- a/scripts/install +++ b/scripts/install @@ -418,12 +418,21 @@ then garage_connect "$garage_command" "$bootstrap_peers" fi +self_bootstrap_peers="$($garage_command node id --quiet) +garage_layout="$(garage_command layout show)" + #================================================= # Send email to admin #================================================= -app_message="your garage node have been installed. You can now connect to other nodes with the following identifiers : \ +app_message=" +your garage node have been installed. You can now connect to other nodes with the following identifiers : + rpc_secret: $rpc_secret - bootstrap_peers: $bootstrap_peers" + bootstrap_peers: $self_bootstrap_peers + +Current garage layout : + +$garage_layout" ynh_send_readme_to_admin --app_message="$app_message"