-
Notifications
You must be signed in to change notification settings - Fork 5
/
start.sh
55 lines (44 loc) · 2.67 KB
/
start.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
46
47
48
49
50
51
52
#! /usr/bin/env sh
set -e
echo "
dddddddd bbbbbbbb
d::::::d b::::::b tttt
d::::::d b::::::b ttt:::t
d::::::d b::::::b t:::::t
d:::::d b:::::b t:::::t
ddddddddd:::::d aaaaaaaaaaaaa ggggggggg gggggb:::::bbbbbbbbb ooooooooooo ttttttt:::::ttttttt
dd::::::::::::::d a::::::::::::a g:::::::::ggg::::gb::::::::::::::bb oo:::::::::::oo t:::::::::::::::::t
d::::::::::::::::d aaaaaaaaa:::::a g:::::::::::::::::gb::::::::::::::::b o:::::::::::::::ot:::::::::::::::::t
d:::::::ddddd:::::d a::::ag::::::ggggg::::::ggb:::::bbbbb:::::::bo:::::ooooo:::::otttttt:::::::tttttt
d::::::d d:::::d aaaaaaa:::::ag:::::g g:::::g b:::::b b::::::bo::::o o::::o t:::::t
d:::::d d:::::d aa::::::::::::ag:::::g g:::::g b:::::b b:::::bo::::o o::::o t:::::t
d:::::d d:::::d a::::aaaa::::::ag:::::g g:::::g b:::::b b:::::bo::::o o::::o t:::::t
d:::::d d:::::d a::::a a:::::ag::::::g g:::::g b:::::b b:::::bo::::o o::::o t:::::t tttttt
d::::::ddddd::::::dda::::a a:::::ag:::::::ggggg:::::g b:::::bbbbbb::::::bo:::::ooooo:::::o t::::::tttt:::::t
d:::::::::::::::::da:::::aaaa::::::a g::::::::::::::::g b::::::::::::::::b o:::::::::::::::o tt::::::::::::::t
d:::::::::ddd::::d a::::::::::aa:::a gg::::::::::::::g b:::::::::::::::b oo:::::::::::oo tt:::::::::::tt
ddddddddd ddddd aaaaaaaaaa aaaa gggggggg::::::g bbbbbbbbbbbbbbbb ooooooooooo ttttttttttt
g:::::g
gggggg g:::::g
g:::::gg gg:::::g
g::::::ggg:::::::g
gg:::::::::::::g
ggg::::::ggg
gggggg "
echo "Starting Dagbot"
FILE=/configuration.yml
if [ -z "$token" ]; then
if test -f "$FILE"; then
echo "$FILE exists."
else
echo "No env vars or configuration.yml found. Exiting"
exit 1
fi
else
echo "Generating Config.yml from enviroment vraibles"
python3 gen-config.py
cat configuration.yml
echo "Generated Config"
fi
exec python3 -m dagbot
echo "App Was exited"