change configuration order

This commit is contained in:
oiseauroch 2022-12-22 16:59:55 +01:00
parent ff6be76e85
commit 28a177c50d

View File

@ -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 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 # define node
$garage_command layout assign $node_id -z $domain -c $weight -t $domain $garage_command layout assign $node_id -z $domain -c $weight -t $domain
# if there is enough node, apply layout # if there is enough node, apply layout
apply_layout "$garage_command" apply_layout "$garage_command"
if [ -n "$bootstrap_peers" ]
then
garage_connect "$garage_command" "$bootstrap_peers"
fi
#================================================= #=================================================
# Send email to admin # Send email to admin
#================================================= #=================================================