From 2f7a656d4fdd68b40d11e5cf908af71575c65dc5 Mon Sep 17 00:00:00 2001 From: oiseauroch Date: Sun, 17 Dec 2023 09:22:57 +0100 Subject: [PATCH] fix layout show --- scripts/_common.sh | 2 +- scripts/install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index c7497a5..74aedcc 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -43,7 +43,7 @@ apply_layout() { garage_command=$1 $garage_command layout show 2>/dev/null - if [ "$($garage_command -c garage.toml layout show | grep 'This new layout cannot yet be applied')" ] + if [ "$($garage_command layout show | grep 'This new layout cannot yet be applied')" ] then ynh_print_warn --message="Unable to apply layout. No enough nodes" return 0 diff --git a/scripts/install b/scripts/install index b81e282..99e25e6 100755 --- a/scripts/install +++ b/scripts/install @@ -140,7 +140,7 @@ fi self_bootstrap_peers="$($garage_command node id --quiet)" garage_layout="$($garage_command layout show)" -ynh_app_setting_set --app=$app --key=garage_layout --value=$garage_layout +ynh_app_setting_set --app=$app --key=garage_layout --value="$garage_layout" #================================================= # END OF SCRIPT