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
|
@ -29,13 +29,19 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_print_info --message="> Arrêt des conteneurs"
|
ynh_print_info --message="> Arrêt des conteneurs"
|
||||||
|
if ynh_lxc_exists --name=$lxc_name1
|
||||||
|
then
|
||||||
if ! ynh_lxc_is_stopped --name=$lxc_name1
|
if ! ynh_lxc_is_stopped --name=$lxc_name1
|
||||||
then
|
then
|
||||||
ynh_print_info --message="Arrêt du conteneur $lxc_name1"
|
ynh_print_info --message="Arrêt du conteneur $lxc_name1"
|
||||||
ynh_lxc_stop_as_demo --name=$lxc_name1
|
ynh_lxc_stop_as_demo --name=$lxc_name1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
if ynh_lxc_exists --name=$lxc_name2
|
||||||
|
then
|
||||||
if ! ynh_lxc_is_stopped --name=$lxc_name2
|
if ! ynh_lxc_is_stopped --name=$lxc_name2
|
||||||
then
|
then
|
||||||
ynh_print_info --message="Arrêt du conteneur $lxc_name2"
|
ynh_print_info --message="Arrêt du conteneur $lxc_name2"
|
||||||
ynh_lxc_stop_as_demo --name=$lxc_name2
|
ynh_lxc_stop_as_demo --name=$lxc_name2
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue