Skip to content

Instantly share code, notes, and snippets.

@wunderdojo
Last active January 23, 2018 20:25
Show Gist options
  • Save wunderdojo/887e7f9b95621405162f2983198333a5 to your computer and use it in GitHub Desktop.
Save wunderdojo/887e7f9b95621405162f2983198333a5 to your computer and use it in GitHub Desktop.
WP installer for Vagrant Box
#!/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