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-22 21:31:53 +0000
commit172dc4053fcac5673f3b837cf2e1c2d202132ec7 (patch)
treefd56c6b7b87445a862af3d0aaec29c0b6d9b5dd2
parentAdding interface max length check in container start command. (diff)
downloadcompute-tools-172dc4053fcac5673f3b837cf2e1c2d202132ec7.tar.xz
compute-tools-172dc4053fcac5673f3b837cf2e1c2d202132ec7.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."