Skip to content

Instantly share code, notes, and snippets.

@Twanneman
Forked from lucprincen/gist:5008961
Last active August 29, 2015 14:06
Show Gist options
  • Save Twanneman/9a001d5514b9a7fb7d4d to your computer and use it in GitHub Desktop.
Save Twanneman/9a001d5514b9a7fb7d4d to your computer and use it in GitHub Desktop.
#!/bin/sh
cd DEV_DIRECTORY_HERE
wget http://wordpress.org/latest.tar.gz
tar -zvxf latest.tar.gz
printf "What would you like to name your new WordPress directory (i.e. mywpdir)? "
read NEWDIR
mv -f wordpress $NEWDIR
cd $NEWDIR
cd wp-content
mkdir upgrade
mkdir uploads
chmod -R g+rwx upgrade
chmod -R g+rwx plugins
chmod -R g+rwx uploads
cd ../../
chgrp -Rv YOUR-GROUP $NEWDIR
rm -f -r latest.tar.gz
open http://YOUR-URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment