-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
start.sh
48 lines (38 loc) · 1.26 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
#!/bin/sh
if [[ -n "${LEAN_DB_PASSWORD_FILE}" ]]; then
LEAN_DB_PASSWORD=$(cat "${LEAN_DB_PASSWORD_FILE}")
export LEAN_DB_PASSWORD
fi
if [[ -n "${LEAN_EMAIL_SMTP_PASSWORD_FILE}" ]]; then
LEAN_EMAIL_SMTP_PASSWORD=$(cat "${LEAN_EMAIL_SMTP_PASSWORD_FILE}")
export LEAN_EMAIL_SMTP_PASSWORD
fi
if [[ -n "${LEAN_S3_SECRET_FILE}" ]]; then
LEAN_S3_SECRET=$(cat "${LEAN_S3_SECRET_FILE}")
export LEAN_S3_SECRET
fi
if [[ -n "${LEAN_SESSION_PASSWORD_FILE}" ]]; then
LEAN_SESSION_PASSWORD=$(cat "${LEAN_SESSION_PASSWORD_FILE}")
export LEAN_SESSION_PASSWORD
fi
if [[ -n "${LEAN_REDIS_PASSWORD_FILE}" ]]; then
LEAN_REDIS_PASSWORD=$(cat "${LEAN_REDIS_PASSWORD_FILE}")
export LEAN_REDIS_PASSWORD
fi
if [[ -n "${LEAN_DB_HOST_FILE}" ]]; then
LEAN_DB_HOST=$(cat "${LEAN_DB_HOST_FILE}")
export LEAN_DB_HOST
fi
if [[ -n "${LEAN_DB_DATABASE_FILE}" ]]; then
LEAN_DB_DATABASE=$(cat "${LEAN_DB_DATABASE_FILE}")
export LEAN_DB_DATABASE
fi
if [[ -n "${LEAN_DB_USER_FILE}" ]]; then
LEAN_DB_USER=$(cat "${LEAN_DB_USER_FILE}")
export LEAN_DB_USER
fi
if [[ -n "${LEAN_EMAIL_SMTP_USERNAME_FILE}" ]]; then
LEAN_EMAIL_SMTP_USERNAME=$(cat "${LEAN_EMAIL_SMTP_USERNAME_FILE}")
export LEAN_EMAIL_SMTP_USERNAME
fi
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf