You can easily modify it and make it install any plugin, replace “sudo -u $1 wp plugin activate memcached-is-your-friend” with “sudo -u $1 wp plugin install $3”, assuming it’s on WordPress’s site. Then make an if statement to not run git, if the plugin isn’t “memcached-is-your-friend”, and if it is, then run the activate command.
Maybe the next version will be an auto installer, you just give it the username, and it searches for WordPress sites, makes an array, and installs to each one. That would be easier with Python, if you don’t know bash.
UsageUse wp_mem.sh user sitename.whatever.
Do whatever the fuck you want with it.