-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create easy, remote CLI install script #15
Comments
mkdir wp-content/mu-plugins
curl -sS https://downloads.wordpress.org/plugin/wp-local-toolbox.zip > wp-content/mu-plugins/wp-local-toolbox.zip
unzip -q wp-content/mu-plugins/wp-local-toolbox.zip -d wp-content/mu-plugins/
rm wp-content/mu-plugins/wp-local-toolbox.zip
mv wp-content/mu-plugins/wp-local-toolbox/* wp-content/mu-plugins/
rm -rf wp-content/mu-plugins/wp-local-toolbox/
mv wp-content/mu-plugins/read* wp-content/mu-plugins/toolbox/
mv wp-content/mu-plugins/LICENSE wp-content/mu-plugins/toolbox/LICENSE
# I'm pretty sure we sent a man to the moon with fewer lines of code
# than it takes me to unpack a zip file. Whatever. It works.
# WPLT configuration
sed -i "3i/** WP Local Toolbox config */" wp-config.php
sed -i "4idefine('WPLT_SERVER','local');" wp-config.php
sed -i "5idefine('WPLT_ADMINBAR','always');" wp-config.php
sed -i "6idefine('WPLT_AIRPLANE','true');" wp-config.php |
this just ate my mu-plugin reader.php! ok, not really, but we should probably play it safe and not wildcard that. I always install manually in mu-plugins, but I'll give this a try. |
Hmmm I lifted this from my vvv-init.sh, so it works in 14.04, but I guess I'll play with it later and make it play nicer in unknown environments. Cool, thanks Jon!
|
We should have a one liner to install WPLT as an mu-plugin
The text was updated successfully, but these errors were encountered: