-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from goegol/master
Add _FILE vars
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,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 |