reset_data.sh
) before starting
with the Update step.
- Backup:
Especially because this is an unsupported way to update moodle, it is important to create a full backup before updating,
including the moodle directory itself. The
backup_data.sh
script does not backup the moodle directory. - Update:
- change to the moodle directory:
cd /home/<wsl username>/moodle
- fetch the branch:
git fetch origin <branch name>:<branch name>
- checkout the branch:
git checkout <branch name>
- change to the moodle directory:
- Update the database:
- open Moodle in the browser and login as admin