Created
November 21, 2012 21:06
-
-
Save jeffsebring/4127719 to your computer and use it in GitHub Desktop.
New WordPress Install with separated directories
This file contains 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 | |
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