ENHANCEMENT: putting webcron commands in own namespace

This commit is contained in:
Jeroen De Meerleer 2022-08-31 17:48:37 +02:00
parent 19b89d2787
commit 07c4ec3864
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

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