From 18a451ed0758a4f9736fd4ac68d3c51e4ea8d773 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 28 Nov 2015 14:13:04 +0100 Subject: change in os startup --- OS/sx-lib.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 OS/sx-lib.sh (limited to 'OS/sx-lib.sh') diff --git a/OS/sx-lib.sh b/OS/sx-lib.sh new file mode 100644 index 0000000..2fcb5aa --- /dev/null +++ b/OS/sx-lib.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +export TERM=dumb + +function display_container_header { + echo "+=====================================================" + echo "| Container : $HOSTNAME" + if [ -v CONTAINER_TYPE ]; then + echo "| Type : $CONTAINER_TYPE" + fi + if [ -v CONTAINER_INSTANCE ]; then + echo "| Instance : $CONTAINER_INSTANCE" + fi + if [ -v CONTAINER_SERVICE ]; then + echo "| Service : $CONTAINER_SERVICE" + fi + echo "+=====================================================" +} -- cgit v1.2.3