Skip to content

Instantly share code, notes, and snippets.

@codeasashu
Created March 14, 2017 21:58
Show Gist options
  • Select an option

  • Save codeasashu/4a748195a2212d1c2ce30a890ffa3a28 to your computer and use it in GitHub Desktop.

Select an option

Save codeasashu/4a748195a2212d1c2ce30a890ffa3a28 to your computer and use it in GitHub Desktop.
Single click latest wordpress installation
#!/bin/bash
# Bash script to install latest wordpress from repo
#Uses wget
#Download latest wordpress
wget -O latest.tar.gz "https://wordpress.org/latest.tar.gz"
#Extract contents
tar xvzf latest.tar.gz
cd wordpress
#move everything to parent directory
find . -maxdepth 1 -exec mv {} .. \;
#remove wordpress subdirectory and latest tar file
rm -rf wordpress
rm -rf latest.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment