summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-07-09 06:23:25 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-07-09 06:23:25 +0000
commit9b16d3621aa4cca28382c7e67cd804d0f60d0b07 (patch)
tree564055a747d8ebc22e25fbf66a47840d4866abde
parentAdding interface max length check in container start command. (diff)
downloadcompute-tools-9b16d3621aa4cca28382c7e67cd804d0f60d0b07.tar.xz
compute-tools-9b16d3621aa4cca28382c7e67cd804d0f60d0b07.zip
Adding message about enabled and disabled container commands in container-shell help.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xbin/container-shell16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/container-shell b/bin/container-shell
index 38a9ab9..4847986 100755
--- a/bin/container-shell
+++ b/bin/container-shell
@@ -66,6 +66,22 @@ Shell ()
find . -type f -printf "%f\n" | sort
cd "${OLDPWD}"
+ if [ -n "${CONTAINER_COMMANDS_ENABLE}" ]
+ then
+ echo
+ echo "The following container commands are enabled for the current user:"
+ echo
+ echo "${CONTAINER_COMMANDS_ENABLE}"
+ fi
+
+ if [ -n "${CONTAINER_COMMANDS_DISABLE}" ]
+ then
+ echo
+ echo "The following container commands are disabled for the current user:"
+ echo
+ echo "${CONTAINER_COMMANDS_DISABLE}"
+ fi
+
echo
echo "Use 'help COMMAND' for more information."