Skip to content

Instantly share code, notes, and snippets.

@heroheman
Forked from alessandro-fazzi/wpinstall.sh
Created June 15, 2012 14:31
Show Gist options
  • Save heroheman/2936755 to your computer and use it in GitHub Desktop.
Save heroheman/2936755 to your computer and use it in GitHub Desktop.
Bash: Install Wordpress with 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