Greetings. I do not seem to be able to update to Moodle 4.1 using the usual method (https://moodlebox.net/en/help/moodle-version-update/#fn:2). Any advice?
Moodle 4.1
Use
sudo -u www-data -g moodlebox git checkout MOODLE_401_STABLE
(I was not aware of the bizarre branch name)
This is the message that comes up:
error: Your local changes to the following files would be overwritten by checkout:
theme/boost/templates/footer.mustache
Please commit your changes or stash them before you switch branches.
Aborting
This message says the file theme/boost/templates/footer.mustache
was modified, so the update fails.
You can try to type
sudo -u www-data -g moodlebox git stash
to discard all changes, then retry.
My MoodleBox 4.4.0 runs fine with Moodle 4.1. The update works as shown on https://moodlebox.net/en/help/moodle-version-update/ . The new branch is MOODLE_401_STABLE now.
- Edited
Ian Impossible to say what's the problem, other that it is a consequence of manually modifying the Moodle source code without paying attention to the file permissions.
On last shot to try to fix the permissions:
sudo chmod -R ug+w /var/www/moodle
sudo chown -R www-data.moodlebox /var/www/moodle
Maybe wait a bit until next version is out, with Moodle 4.1.
- Edited
I could not wait :-) I updated already on Sunday to Moodle 4.1.
And I am looking forward because the new MoodleBox will have some new features. https://github.com/moodlebox/moodlebox/blob/main/CHANGELOG.md
Talking of "bizarre branch names", pl. see https://moodle.org/mod/forum/discuss.php?d=441054#p1774559.