When I run this container, the backup.sh script does not get the environment variables set for it and thus fails to work properly.
This PR changes the start script to write the current environment variables for the docker container to /tmp/mongodump_env, then when the backup script runs in the cron context it can source the variables to work correctly.
When I run this container, the
backup.sh
script does not get the environment variables set for it and thus fails to work properly.This PR changes the start script to write the current environment variables for the docker container to
/tmp/mongodump_env
, then when the backup script runs in the cron context it can source the variables to work correctly.