Skip to content

Instantly share code, notes, and snippets.

@jeffsebring jeffsebring/newp.sh
Created Nov 21, 2012

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
You can’t perform that action at this time.