From 43dfa016836a11cfb0b8043c3c02cdbdb18c089b Mon Sep 17 00:00:00 2001 From: Tilo Baller Date: Sun, 22 Jan 2017 00:34:30 +0100 Subject: [PATCH] [TASK] Fix make scheduler cmd for TYPO3 >6.2 - Determine path to typo3/cli_dispatch.phpsh by looking up WEB_DOCUMENT_ROOT env variable which is defined in etc/environment.yml and automatically available in the app container. This makes the 'make scheduler' command work for all TYPO3 versions. - Run container as application user to avoid permission problems. - Use docker-compose exec instead of docker exec, which speeds up the command call, because there is no need to determine the container id of the app container anymore. Fixes #139 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a381688..25cf2b4 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,7 @@ root: ############################# scheduler: - docker exec -it $$(docker-compose ps -q app) typo3/cli_dispatch.phpsh scheduler $(ARGS) + docker-compose exec --user application app /bin/bash -c '"$$WEB_DOCUMENT_ROOT"typo3/cli_dispatch.phpsh scheduler $(ARGS); (exit $$?)' ############################# # Argument fix workaround