diff --git a/CHANGELOG.md b/CHANGELOG.md index 2316ff5..2c1dc88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Note: Breaking changes between versions are indicated by "💥". +## Unreleased + +- [Bugfix] Fix "missing tty" during init in cron jobs + ## v3.11.7 (2020-04-01) - [Bugfix] Fix missing js translations diff --git a/tutor/commands/compose.py b/tutor/commands/compose.py index e0f7b1e..b9602fc 100644 --- a/tutor/commands/compose.py +++ b/tutor/commands/compose.py @@ -12,8 +12,9 @@ class ScriptRunner(scripts.BaseRunner): self.docker_compose_func = docker_compose_func def exec(self, service, command): + opts = [] if utils.is_a_tty() else ["-T"] self.docker_compose_func( - self.root, self.config, "exec", service, "sh", "-e", "-c", command + self.root, self.config, "exec", *opts, service, "sh", "-e", "-c", command )