-
-
Save Twanneman/9a001d5514b9a7fb7d4d to your computer and use it in GitHub Desktop.
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 | |
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