mirror of https://github.com/MISP/misp-docker
Export optional environment variables
parent
5c78c3492c
commit
14c042f41e
|
@ -14,8 +14,8 @@ trap term_proc SIGTERM
|
||||||
[ -z "$MYSQL_PASSWORD" ] && MYSQL_PASSWORD=example
|
[ -z "$MYSQL_PASSWORD" ] && MYSQL_PASSWORD=example
|
||||||
[ -z "$MYSQL_DATABASE" ] && MYSQL_DATABASE=misp
|
[ -z "$MYSQL_DATABASE" ] && MYSQL_DATABASE=misp
|
||||||
[ -z "$MYSQLCMD" ] && export MYSQLCMD="mysql -u $MYSQL_USER -p$MYSQL_PASSWORD -P $MYSQL_PORT -h $MYSQL_HOST -r -N $MYSQL_DATABASE"
|
[ -z "$MYSQLCMD" ] && export MYSQLCMD="mysql -u $MYSQL_USER -p$MYSQL_PASSWORD -P $MYSQL_PORT -h $MYSQL_HOST -r -N $MYSQL_DATABASE"
|
||||||
[ -z "$CRON_USER_ID" ] && CRON_USER_ID="1"
|
[ -z "$CRON_USER_ID" ] && export CRON_USER_ID="1"
|
||||||
[ -z "$HOSTNAME" ] && HOSTNAME="https://localhost"
|
[ -z "$HOSTNAME" ] && export HOSTNAME="https://localhost"
|
||||||
|
|
||||||
init_mysql(){
|
init_mysql(){
|
||||||
# Test when MySQL is ready....
|
# Test when MySQL is ready....
|
||||||
|
|
Loading…
Reference in New Issue