summaryrefslogtreecommitdiffstats
path: root/OS/sx-lib.sh
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-28 14:13:04 +0100
committerstartxfr <clarue@startx.fr>2015-11-28 14:13:04 +0100
commit18a451ed0758a4f9736fd4ac68d3c51e4ea8d773 (patch)
tree1db11041c2bb05c4a50037d17b58e7024e0ee289 /OS/sx-lib.sh
parent060ad50936e6e1cf59a3de46cc088a98a5682bea (diff)
downloadphpmyadmin-18a451ed0758a4f9736fd4ac68d3c51e4ea8d773.tar.gz
phpmyadmin-18a451ed0758a4f9736fd4ac68d3c51e4ea8d773.tar.bz2
phpmyadmin-18a451ed0758a4f9736fd4ac68d3c51e4ea8d773.tar.xz
phpmyadmin-18a451ed0758a4f9736fd4ac68d3c51e4ea8d773.zip
change in os startup
Diffstat (limited to 'OS/sx-lib.sh')
-rw-r--r--OS/sx-lib.sh18
1 files changed, 18 insertions, 0 deletions
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 "+====================================================="
+}