summaryrefslogtreecommitdiffstats
path: root/lib
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-12-11 13:16:08 +0000
commit398e2c3e8fe52f5381fa1d4730fe27492c17635f (patch)
treefe6fedddce30dcaaaf68db08cd39b65e51a06d81 /lib
parentAvoid repeating ipv4 address of the previous container in container list comm... (diff)
downloadcompute-tools-398e2c3e8fe52f5381fa1d4730fe27492c17635f.tar.xz
compute-tools-398e2c3e8fe52f5381fa1d4730fe27492c17635f.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