Fix "missing tty" during init in cron jobs

This commit is contained in:
Régis Behmo 2020-04-02 12:36:43 +02:00
parent 40d9058f3d
commit 04f672eed2
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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
)