mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-11 09:35:06 +00:00
Fix "missing tty" during init in cron jobs
This commit is contained in:
parent
40d9058f3d
commit
04f672eed2
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user