summaryrefslogtreecommitdiffstats
path: root/lib/container/remove
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-12 02:07:52 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-12 07:47:20 +0000
commit2bead10d5ae5d4028a6d79c36ba54d6a79a422c7 (patch)
treef5320ab719111ed9bb64b6ff743b7127b44d5058 /lib/container/remove
parentUsing fallback to ifupdown addresses in container list command for container ... (diff)
downloadcompute-tools-2bead10d5ae5d4028a6d79c36ba54d6a79a422c7.tar.xz
compute-tools-2bead10d5ae5d4028a6d79c36ba54d6a79a422c7.zip
Fail to find container in remove command only when both the rootfs and the config are gone already.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/remove2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/remove b/lib/container/remove
index 843e9c3..04e7d30 100755
--- a/lib/container/remove
+++ b/lib/container/remove
@@ -82,7 +82,7 @@ then
Usage
fi
-if [ ! -e "${MACHINES}/${NAME}" ]
+if [ ! -e "${MACHINES}/${NAME}" ] && [ ! -e "${CONFIG}/${NAME}.conf" ]
then
echo "'${NAME}': no such container" >&2
exit 1