From 28a177c50d5698e5d88dceaa682e075d8d786745 Mon Sep 17 00:00:00 2001 From: oiseauroch Date: Thu, 22 Dec 2022 16:59:55 +0100 Subject: [PATCH] change configuration order --- scripts/install | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 44527b1..93ed6de 100755 --- a/scripts/install +++ b/scripts/install @@ -408,16 +408,16 @@ node_id=$($garage_command node id -q 2>/dev/null | cut -d '@' -f1) ynh_app_setting_set --app=$app --key=node_id --value=$node_id -if [ -n "$bootstrap_peers" ] -then - garage_connect "$garage_command" "$bootstrap_peers" -fi - # define node $garage_command layout assign $node_id -z $domain -c $weight -t $domain # if there is enough node, apply layout apply_layout "$garage_command" +if [ -n "$bootstrap_peers" ] +then + garage_connect "$garage_command" "$bootstrap_peers" +fi + #================================================= # Send email to admin #=================================================