forked from nevercodealone/cms-symfony-sulu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
22 lines (20 loc) · 1.48 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
[ -n "$APP_DEBUG_FILE" ] && export APP_DEBUG="$(cat $APP_DEBUG_FILE)"
[ -n "$APP_ENV_FILE" ] && export APP_ENV="$(cat $APP_ENV_FILE)"
[ -n "$APP_SECRET_FILE" ] && export APP_SECRET="$(cat $APP_SECRET_FILE)"
[ -n "$CORS_ALLOW_ORIGIN_FILE" ] && export CORS_ALLOW_ORIGIN="$(cat $CORS_ALLOW_ORIGIN_FILE)"
[ -n "$DATABASE_URL_FILE" ] && export DATABASE_URL="$(cat $DATABASE_URL_FILE)"
[ -n "$DATABASE_HOST_FILE" ] && export DATABASE_HOST="$(cat $DATABASE_HOST_FILE)"
[ -n "$DATABASE_USER_FILE" ] && export DATABASE_USER="$(cat $DATABASE_USER_FILE)"
[ -n "$DATABASE_PASS_FILE" ] && export DATABASE_PASS="$(cat $DATABASE_PASS_FILE)"
[ -n "$DATABASE_NAME_FILE" ] && export DATABASE_NAME="$(cat $DATABASE_NAME_FILE)"
[ -n "$MAIL_USER_FILE" ] && export MAIL_USER="$(cat $MAIL_USER_FILE)"
[ -n "$MAIL_PASS_FILE" ] && export MAIL_PASS="$(cat $MAIL_PASS_FILE)"
[ -n "$SULU_ADMIN_EMAIL_FILE" ] && export SULU_ADMIN_EMAIL="$(cat $SULU_ADMIN_EMAIL_FILE)"
[ -n "$MAIL_URL_FILE" ] && export MAILER_URL="$(cat $MAIL_URL_FILE)"
[ -n "$GOOGLE_API_KEY_FILE" ] && export GOOGLE_API_KEY="$(cat $GOOGLE_API_KEY_FILE)"
[ -n "$TWITTER_API_KEY_FILE" ] && export TWITTER_API_KEY="$(cat $TWITTER_API_KEY_FILE)"
[ -n "$TWITTER_API_SECRET_FILE" ] && export TWITTER_API_SECRET="$(cat $TWITTER_API_SECRET_FILE)"
[ -n "$TWITTER_ACCESS_TOKEN_FILE" ] && export TWITTER_ACCESS_TOKEN="$(cat $TWITTER_ACCESS_TOKEN_FILE)"
[ -n "$TWITTER_ACCESS_SECRET_FILE" ] && export TWITTER_ACCESS_SECRET="$(cat $TWITTER_ACCESS_SECRET_FILE)"
exec "$@"