Created
March 14, 2017 21:58
-
-
Save codeasashu/4a748195a2212d1c2ce30a890ffa3a28 to your computer and use it in GitHub Desktop.
Single click latest wordpress installation
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 | |
| # 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