cron: Monitor "command"s with sentry, now that they are one command.

These no longer involve any shell, so are safe to prepend with the
sentry wrapper.
This commit is contained in:
Alex Vandiver 2024-05-22 04:23:19 +00:00 committed by Tim Abbott
parent f246b82f67
commit c7f42de8ba
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ define zulip::cron(
$cron_require = []
}
if $command != undef {
$run = $command
$run = "${sentry}${command}"
} elsif $manage != undef {
$run = "cd /home/zulip/deployments/current/ && ${sentry}./manage.py ${manage} >/dev/null"
} else {