Keywords: WordPress Multisite - Google Cloud Platform - How to - Other
I have set up a cron script that should go through all sites in a network and run cron for them.
The script looks like this:
for URL in = $(wp site list --deleted=0 --archived=0 --fields=url --format=csv --path="$PATH_TO_WORDPRESS")
wp cron event run --all --due-now --url="$URL" --path="$PATH_TO_WORDPRESS"
It works if I run it as bitnami, but if I try to run it via cron (as bitnami) I get wp: command not found as the output.
Was anyone able to figure this out?