summaryrefslogtreecommitdiffstats
path: root/OS/sx-lib.sh
blob: 22aa84a12e9196940c052f4e3abd85e90d563380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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 "+====================================================="
}

function display_container_started {
    echo "+====================================================="
    echo "| Container $HOSTNAME is now running..."
    echo "+====================================================="
}