ENHANCEMENT: putting webcron commands in own namespace
This commit is contained in:
parent
19b89d2787
commit
07c4ec3864
@ -126,7 +126,7 @@ fi
|
|||||||
# report commands
|
# report commands
|
||||||
if [[ $DEMO_MODE == "true" ]]; then
|
if [[ $DEMO_MODE == "true" ]]; then
|
||||||
echo 'Installing demo data'
|
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
|
fi
|
||||||
|
|
||||||
php bin/console cache:clear
|
php bin/console cache:clear
|
||||||
@ -148,7 +148,7 @@ fi
|
|||||||
chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $WEBCRON_ROOT/var
|
chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $WEBCRON_ROOT/var
|
||||||
|
|
||||||
echo "Go!"
|
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=$!
|
wc_pid=$!
|
||||||
trap "kill $wc_pid 2> /dev/null" EXIT
|
trap "kill $wc_pid 2> /dev/null" EXIT
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user