-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
45 lines (40 loc) · 1.18 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#####################################
########### Initialize Sh ###########
#####################################
# "tput: No value for $TERM and no -T specified " Error Work Around
export TERM="xterm-256color"
# Define Banner Function
banner()
{
echo "+------------------------------------------+"
printf "| %-40s |\n" "`date`"
echo "| |"
printf "|`tput bold` %-40s `tput sgr0`|\n" "$@"
echo "+------------------------------------------+"
}
#####################################
################ Start ##############
#####################################
# Start
figlet -t "AI Stack Lite"
#####################################
######## Envrionment Variables ######
#####################################
# Variables
banner "Envrionment Variables"
# Change Work Dir to Apps
cd /workspace/ai-stack-lite
printenv
#####################################
########### Execute Scripts #########
#####################################
# Run Script
banner "Execute Script"
# Run Scripts
python3 $RUN_SCRIPT_PATH
#####################################
############# Finish Note ###########
#####################################
# Finish
banner "Finished"