mirror of
https://github.com/YunoHost-Apps/garage_ynh.git
synced 2024-09-03 18:36:32 +02:00
use var for garage_command
This commit is contained in:
parent
ced6335f6b
commit
fcfe9758fd
1 changed files with 1 additions and 1 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 -c garage.toml layout show | grep 'This new layout cannot yet be applied')" ]
|
if [ "$($garage_command -c garage.toml 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue