Skip to content

Instantly share code, notes, and snippets.

@alessandro-fazzi
Created June 15, 2012 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alessandro-fazzi/2936679 to your computer and use it in GitHub Desktop.
Save alessandro-fazzi/2936679 to your computer and use it in GitHub Desktop.
Install latest WordPress release in a specific path wigth a single command
#!/bin/bash
#Install latest WordPress release in a specific path
#and don't bother any more! :)
if [[ ! $1 ]]; then
echo "Please, pass to me destination path as first argument! :)"
exit 1
fi
path=$1
wget http://wordpress.org/latest.zip
unzip latest.zip -d $path && rm $path/latest.zip
cp -r $path/wordpress/* ./ && rm -rf $path/wordpress/ $path/latest.zip
echo "Finished!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment