Export optional environment variables

pull/1/head
Stefano Ortolani 2023-05-17 14:07:21 +01:00
parent 5c78c3492c
commit 14c042f41e
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ trap term_proc SIGTERM
[ -z "$MYSQL_PASSWORD" ] && MYSQL_PASSWORD=example
[ -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 "$CRON_USER_ID" ] && CRON_USER_ID="1"
[ -z "$HOSTNAME" ] && HOSTNAME="https://localhost"
[ -z "$CRON_USER_ID" ] && export CRON_USER_ID="1"
[ -z "$HOSTNAME" ] && export HOSTNAME="https://localhost"
init_mysql(){
# Test when MySQL is ready....