Last active
January 23, 2018 20:25
-
-
Save wunderdojo/887e7f9b95621405162f2983198333a5 to your computer and use it in GitHub Desktop.
WP installer for Vagrant Box
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
#!/usr/bin/env bash | |
# Post provisioning script | |
#check if WP is installed and if not download it | |
if [ ! -d "$1/wp-admin" ]; then | |
cd $1 | |
wget http://wordpress.org/latest.tar.gz | |
tar xfz latest.tar.gz | |
mv wordpress/* ./ | |
rmdir ./wordpress/ | |
rm -f latest.tar.gz | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment