Simple bash script that can update Wordpress in current directory, generate SQL query to update Wordpress URL, generate new salt key, generate .htaccess and .htpasswd files to protect wp-admin directory.
Download script to Wordpress directory:
$ wget https://raw.githubusercontent.com/ordigital/wp-update/master/wp-update
Add executable flag:
$ chmod +x ./wp-update
Execute:
$ ./wp-update