mirror of
https://github.com/YunoHost-Apps/garage_ynh.git
synced 2024-09-03 18:36:32 +02:00
fix layout show
This commit is contained in:
parent
fcfe9758fd
commit
2f7a656d4f
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ apply_layout() {
|
||||||
|
|
||||||
garage_command=$1
|
garage_command=$1
|
||||||
$garage_command layout show 2>/dev/null
|
$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
|
then
|
||||||
ynh_print_warn --message="Unable to apply layout. No enough nodes"
|
ynh_print_warn --message="Unable to apply layout. No enough nodes"
|
||||||
return 0
|
return 0
|
||||||
|
|
|
@ -140,7 +140,7 @@ fi
|
||||||
|
|
||||||
self_bootstrap_peers="$($garage_command node id --quiet)"
|
self_bootstrap_peers="$($garage_command node id --quiet)"
|
||||||
garage_layout="$($garage_command layout show)"
|
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
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue