diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-11-12 02:07:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2016-12-11 13:16:08 +0000 |
commit | 398e2c3e8fe52f5381fa1d4730fe27492c17635f (patch) | |
tree | fe6fedddce30dcaaaf68db08cd39b65e51a06d81 /lib/container | |
parent | Avoid repeating ipv4 address of the previous container in container list comm... (diff) | |
download | compute-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-x | lib/container/remove | 2 |
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 |