-
-
Save HughP/65da2a576a6cfe696cea9dab798c8b73 to your computer and use it in GitHub Desktop.
Script for installing the latest version of WordPress plus a number of useful plugins.
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
#!/bin/sh | |
# | |
# Instant Wordpress! | |
# ------------------ | |
# Script for installing the latest version of WordPress plus a number of useful plugins. | |
# Source : https://github.com/snaptortoise/wordpress-quick-install | |
# | |
# | |
# Latest version of WP | |
echo "Fetching WordPress..."; | |
wget --quiet http://wordpress.org/latest.zip; | |
unzip -q latest.zip; | |
# Sitemap Generator | |
echo "Fetching Google Sitemap Generator plugin..."; | |
wget --quiet http://downloads.wordpress.org/plugin/google-sitemap-generator.zip; | |
unzip -q google-sitemap-generator.zip; | |
mv google-sitemap-generator wordpress/wp-content/plugins/ | |
# Secure WordPress | |
echo "Fetching Secure WordPress plugin..."; | |
wget --quiet http://downloads.wordpress.org/plugin/secure-wordpress.zip; | |
unzip -q secure-wordpress.zip; | |
mv secure-wordpress wordpress/wp-content/plugins/ | |
# Image Widgets (Why isn't this standard?) | |
echo "Fetching Image Widget plugin..."; | |
wget --quiet http://downloads.wordpress.org/plugin/image-widget.zip; | |
unzip -q image-widget.zip; | |
mv image-widget wordpress/wp-content/plugins/ | |
# Super-cache | |
echo "Fetching Super Cache plugin..."; | |
wget --quiet http://downloads.wordpress.org/plugin/wp-super-cache.zip; | |
unzip -q wp-super-cache.zip; | |
mv wp-super-cache wordpress/wp-content/plugins/ | |
# Regenerate Thumbnails (good for when you need to make custom sizes) | |
echo "Fetching Regenerate Thumbnails..."; | |
wget --quiet http://downloads.wordpress.org/plugin/regenerate-thumbnails.zip | |
unzip -q regenerate-thumbnails.zip | |
mv regenerate-thumbnails wordpress/wp-content/plugins/ | |
# WordPress Importer | |
echo "Fetching WordPress Importer..."; | |
wget --quiet http://downloads.wordpress.org/plugin/wordpress-importer.zip | |
unzip -q wordpress-importer.zip | |
mv wordpress-importer wordpress/wp-content/plugins/ | |
# Cleanup | |
echo "Cleaning up temporary files and directories..."; | |
rm *.zip | |
# Move stuff into current directory | |
mv wordpress/* .; | |
rm -rf wordpress; | |
# Disable the built-in file editor because it's a hacking vector and I hate it | |
echo "Disabling file editor..."; | |
echo " | |
/* Disable the file editor */ | |
define(‘DISALLOW_FILE_EDIT’, true);" >> wp-config-sample.php | |
echo "Done!"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment