2017-06-24 23:15:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ ! -f "/app/config/production.toml" ] ; then
|
|
|
|
echo "No production.toml, copying from docker-production.toml.tmpl"
|
|
|
|
cp /app/config/docker-production.toml.tmpl /app/config/production.toml
|
|
|
|
fi
|
|
|
|
if [ ! -f "/app/workers/reports/config/production.toml" ] ; then
|
2017-06-24 23:49:35 +00:00
|
|
|
echo "No production.toml for reports"
|
|
|
|
if [ -f "/app/config/production.toml" ] ; then
|
|
|
|
echo "copying config/production.toml to reports config directory"
|
|
|
|
cp /app/config/production.toml /app/workers/reports/config/production.toml
|
|
|
|
else
|
|
|
|
echo "copying config/docker-production.toml.tmpl to reports config directory as production.toml"
|
|
|
|
cp /app/config/docker-production.toml.tmpl /app/workers/reports/config/production.toml
|
|
|
|
fi
|
2017-06-24 23:15:52 +00:00
|
|
|
fi
|
|
|
|
exec "$@"
|