diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-10-05 10:08:03 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-10-05 10:08:03 +0200 |
commit | 929520e63d9e51ca7e7e51a71d56f476653fef99 (patch) | |
tree | f342a3f6e51bd2225c72bf638747c36d38194229 /sx.sh | |
parent | 96660ef505d3e5763f057c793c29d694d11bf273 (diff) | |
download | ands-management-929520e63d9e51ca7e7e51a71d56f476653fef99.tar.gz ands-management-929520e63d9e51ca7e7e51a71d56f476653fef99.tar.bz2 ands-management-929520e63d9e51ca7e7e51a71d56f476653fef99.tar.xz ands-management-929520e63d9e51ca7e7e51a71d56f476653fef99.zip |
Diffstat (limited to 'sx.sh')
-rw-r--r-- | sx.sh | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -1,30 +0,0 @@ -#!/bin/bash -export TERM=xterm -pid=0 - -function display_container_header { - echo "+=====================================================" - echo "| Container : $HOSTNAME" - echo "| OS : $(</etc/redhat-release)" - echo "| kubernetes : $KUBERNETES_SERVICE_HOST" - echo "| user : $(whoami)" - echo "| home : $HOME" - echo "+=====================================================" -} - -function start_service { - echo "+=====================================================" - echo "| Container $HOSTNAME is now RUNNING" - echo "+=====================================================" - while true - do - echo "live... (next try in 1 hour)" & sleep 3600 - done -} - -if [ -n "$HOME" ]; then - [ -d "$HOME" ] || mkdir -p $HOME -fi - -display_container_header -start_service |