ENHANCEMENT: webcron running as www-data
This commit is contained in:
parent
730f5f2204
commit
2d66faab9f
@ -144,7 +144,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!"
|
||||||
php $WEBCRON_ROOT/bin/console daemon &
|
su - www-data -s "/bin/bash" -c "php $WEBCRON_ROOT/bin/console 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