Froxlor wp_mem.sh

Installs and activates the working forked Memcached Is Your Friend plugin, it uses wp-cli. Uses git for cloning the repo.

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.

Usage

Use wp_mem.sh user sitename.whatever.

License


Do whatever the fuck you want with it.

Download

wp_mem.sh