Instantly share code, notes, and snippets.

Embed
What would you like to do?
New WordPress Install with separated directories
#!/bin/sh
wget http://wordpress.org/latest.tar.gz
tar -zxvf latest.tar.gz
rm latest.tar.gz
mv wordpress __
mv __/wp-content _
echo "<?php" >> index.php
echo "define( 'WP_USE_THEMES', true );" >> index.php
echo "require('./__/wp-blog-header.php');" >> index.php
mv __/wp-config-sample.php wp-config.php
printf 'SUCCESS!\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment