trey (owner)

Revisions

gist: 187816 Download_button fork
public
Description:
Do this stuff easily: http://trey.cc/s/p2g
Public Clone URL: git://gist.github.com/187816.git
Embed All Files: show embed
wp-setup.sh #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mkdir $1
cd $1
echo 'Downloading WordPress ...'
svn co --quiet http://svn.automattic.com/wordpress/trunk/ wp
echo 'Setting up custom wp-content folder ...'
cp -R wp/wp-content ./wp-content
cd wp-content
rm -rf `find . -type d -name .svn`
cd plugins
rm -rf akismet
echo 'Downloading Akismet ...'
svn co --quiet http://plugins.svn.wordpress.org/akismet/trunk/ akismet
cd ../..
echo 'Creating wp-config.php file ...'
cp wp/wp-config-sample.php ./wp-config.php
cp wp/index.php .
echo 'Setting up .htaccess file ...'
touch .htaccess
chmod 666 .htaccess
echo 'Creating new WordPress theme ...'
cp -R ./wp-content/themes/default ./wp-content/themes/$1
echo 'Done!'
echo 'Now edit index.php and wp-config.php.'