mirror of
https://github.com/YunoHost/yunohost_demo.git
synced 2024-09-03 19:56:44 +02:00
Update demo_stop.sh
This commit is contained in:
parent
6d7d377a9a
commit
7dfe57e6da
1 changed files with 12 additions and 6 deletions
18
demo_stop.sh
18
demo_stop.sh
|
@ -29,13 +29,19 @@ else
|
|||
fi
|
||||
|
||||
ynh_print_info --message="> Arrêt des conteneurs"
|
||||
if ! ynh_lxc_is_stopped --name=$lxc_name1
|
||||
if ynh_lxc_exists --name=$lxc_name1
|
||||
then
|
||||
ynh_print_info --message="Arrêt du conteneur $lxc_name1"
|
||||
ynh_lxc_stop_as_demo --name=$lxc_name1
|
||||
if ! ynh_lxc_is_stopped --name=$lxc_name1
|
||||
then
|
||||
ynh_print_info --message="Arrêt du conteneur $lxc_name1"
|
||||
ynh_lxc_stop_as_demo --name=$lxc_name1
|
||||
fi
|
||||
fi
|
||||
if ! ynh_lxc_is_stopped --name=$lxc_name2
|
||||
if ynh_lxc_exists --name=$lxc_name2
|
||||
then
|
||||
ynh_print_info --message="Arrêt du conteneur $lxc_name2"
|
||||
ynh_lxc_stop_as_demo --name=$lxc_name2
|
||||
if ! ynh_lxc_is_stopped --name=$lxc_name2
|
||||
then
|
||||
ynh_print_info --message="Arrêt du conteneur $lxc_name2"
|
||||
ynh_lxc_stop_as_demo --name=$lxc_name2
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue