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
# Download Latest Wordpress archive from WP org | |
wget https://wordpress.org/latest.tar.gz | |
#Extract the archive showing the progress | |
pv latest.tar.gz | tar xzf - -C . | |
#Copy the content of WP Salts page | |
WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -) | |
#generate a random string; lower and upper case letters + numbers; maximun 9 characters |