-
-
Save heroheman/2936755 to your computer and use it in GitHub Desktop.
Bash: Install Wordpress with a single Command
This file contains hidden or 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/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