From 07c4ec386475e099511b1ad3887f6de2b9ad8e0a Mon Sep 17 00:00:00 2001 From: jeroen Date: Wed, 31 Aug 2022 17:48:37 +0200 Subject: [PATCH] ENHANCEMENT: putting webcron commands in own namespace --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 65fd879..9a07005 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -126,7 +126,7 @@ fi # report commands if [[ $DEMO_MODE == "true" ]]; then echo 'Installing demo data' - su - www-data -s "/bin/bash" -c "php $WEBCRON_ROOT/bin/console install:demodata" + su - www-data -s "/bin/bash" -c "php $WEBCRON_ROOT/bin/console webcron:demodata" fi php bin/console cache:clear @@ -148,7 +148,7 @@ fi chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $WEBCRON_ROOT/var echo "Go!" -su - www-data -s "/bin/bash" -c "php $WEBCRON_ROOT/bin/console daemon" & +su - www-data -s "/bin/bash" -c "php $WEBCRON_ROOT/bin/console webcron:daemon" & wc_pid=$! trap "kill $wc_pid 2> /dev/null" EXIT