Last active
April 25, 2019 18:30
-
-
Save amityweb/a2b2f5f210f469cef13c1a56e08f1977 to your computer and use it in GitHub Desktop.
List All Virtualmin Domains that Are Wordpress Sites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virtualmin list-domains --name-only --no-alias | while read line ; do | |
path=$(virtualmin list-domains --enabled --domain $line --home-only) | |
if [ $(find $path -maxdepth 2 -name 'wp-config.php') ]; then | |
echo $line | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment