diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-27 18:49:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-27 18:49:33 +0000 |
commit | cc58097e2f6fceea5084866ab93baf0e4d6099aa (patch) | |
tree | 8b8e9d779109b704ceb2bbc882c4d9c66914e2c6 /lib/container/create | |
parent | Adding 'ALL' as pseudo container name for container start, stop, restart, and... (diff) | |
download | compute-tools-cc58097e2f6fceea5084866ab93baf0e4d6099aa.tar.xz compute-tools-cc58097e2f6fceea5084866ab93baf0e4d6099aa.zip |
Adding check in container create command to not create any container named 'ALL'.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'lib/container/create')
-rwxr-xr-x | lib/container/create | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/container/create b/lib/container/create index 2ffcfda..561584c 100755 --- a/lib/container/create +++ b/lib/container/create @@ -121,6 +121,13 @@ then Usage fi +case "${NAME}" in + ALL) + echo "'${NAME}': name 'ALL' is reserved to expand to all available container" >&2 + exit 1 + ;; +esac + if [ -e "${CONFIG}/${NAME}.conf" ] then echo "'${NAME}': container already exists or ${CONFIG}/${NAME}.conf has not been removed" >&2 |