Commit b5185fc9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix destroy listing

parent d1afca1d
......@@ -185,11 +185,9 @@ case $CMD in
read -r -p "Are you sure? [Yes/No]" response
[ "$response" = "Yes" ] || fatal "Have no receive your accept."
for i in "$LIST" ; do
info "Stopping $i ..."
docmd docker stop $i
docmd docker rm -f -v $i
done
info "Stopping $LIST ..."
docmd docker stop $LIST
docmd docker rm -f -v $LIST
;;
*)
fatal "Unknow command '$CMD'. Use --help to get help."
......
......@@ -163,7 +163,7 @@ case $CMD in
read -r -p "Are you sure? [Yes/No]" response
[ "$response" = "Yes" ] || fatal "Have no receive your accept."
for i in "$LIST" ; do
for i in $LIST ; do
#info "Stopping $i ..."
docmd vzctl stop $i
docmd vzctl destroy $i
......
......@@ -190,7 +190,7 @@ case $CMD in
read -r -p "Are you sure? [Yes/No]" response
[ "$response" = "Yes" ] || fatal "Have no receive your accept."
for i in "$LIST" ; do
for i in $LIST ; do
info "Stopping $i ..."
docmd qm stop $i
docmd qm destroy $i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment