Use production.toml for reports when it exists in config
This commit is contained in:
parent
58f607ffc4
commit
8d56f0763e
1 changed files with 8 additions and 2 deletions
|
@ -6,7 +6,13 @@ if [ ! -f "/app/config/production.toml" ] ; then
|
|||
cp /app/config/docker-production.toml.tmpl /app/config/production.toml
|
||||
fi
|
||||
if [ ! -f "/app/workers/reports/config/production.toml" ] ; then
|
||||
echo "No production.toml for reports, copying from docker-production.toml.tmpl"
|
||||
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
|
||||
fi
|
||||
exec "$@"
|
Loading…
Reference in a new issue