Skip to content

Instantly share code, notes, and snippets.

@razorfrog
Created December 18, 2022 23:05
Show Gist options
  • Save razorfrog/a78bcb374c98ee61b92013ad37600208 to your computer and use it in GitHub Desktop.
Save razorfrog/a78bcb374c98ee61b92013ad37600208 to your computer and use it in GitHub Desktop.
gp doctor for all sites
for wpconfig in /var/www/*/wp-config.php; do \
echo; site=${wpconfig%\/wp-config.php}; site=${site#\/var\/www\/}; \
gp wp $site doctor check --all
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment