ENHANCEMENT: webcron running as www-data

This commit is contained in:
Jeroen De Meerleer 2022-06-10 10:50:11 +02:00
parent 730f5f2204
commit 2d66faab9f
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

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