I've created cronjob with crontab -u www-data -e
and added the following command:
* * * * * cd /var/www/example.com/wp-content/themes/mytheme && /usr/local/bin/git pull origin dev
But it's not pulling in anything. I've also set up custom cron log via rsyslog, but it only shows command, no output. When I run said command as root everything works.
Permissions on dirs and files are setup properly, and owner of said directory is www-data.