From 1f115d966a79475e57bcceec4293f8877293b6a5 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Thu, 7 Sep 2023 09:27:09 +0200 Subject: [PATCH] Bugfix: start supercronic with sentry on production --- compose/django/docker_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/django/docker_start.sh b/compose/django/docker_start.sh index b6fa79cb..d88f2e2b 100644 --- a/compose/django/docker_start.sh +++ b/compose/django/docker_start.sh @@ -17,7 +17,7 @@ fi # Use sentry for supercronic only in prod* environments if [[ $IT_APP_ENVIRONMENT == prod* ]]; then - sed -i 's|command=/usr/local/bin/supercronic /app/supercronic_crontab|command=/usr/local/bin/supercronic /app/supercronic_crontab -sentry-dsn "$IT_SENTRY_DSN"|' /app/supervisord.conf + sed -i "s|command=/usr/local/bin/supercronic /app/supercronic_crontab|command=/usr/local/bin/supercronic /app/supercronic_crontab -sentry-dsn '$IT_SENTRY_DSN'|" /app/supervisord.conf fi # Set the command to run supervisord