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!"