Bash script for upgrading Moodle