From cc58097e2f6fceea5084866ab93baf0e4d6099aa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 27 May 2018 20:49:33 +0200 Subject: Adding check in container create command to not create any container named 'ALL'. Signed-off-by: Daniel Baumann --- lib/container/create | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3