mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
moodle/tasks/install.yml: Clarify CLI-based Moodle upgrade tips
This commit is contained in:
parent
120a5701b9
commit
d46d5d12d7
1 changed files with 6 additions and 3 deletions
|
@ -11,10 +11,13 @@
|
|||
#
|
||||
# EXAMPLE:
|
||||
# cd /opt/iiab/moodle
|
||||
# cp -p config.php ~/config.php.MOODLE_BKP
|
||||
# sudo -u www-data /usr/bin/php admin/cli/maintenance.php --enable
|
||||
# git pull # Might fail due to original clone with '--depth 1' ? So this too may fail: git pull https://github.com/moodle/moodle MOODLE_403_STABLE --no-rebase # IF SO, RESCUE config.php AFTER RECLONE: cd .. ; mv moodle moodle.bkp ; git clone https://github.com/moodle/moodle -b MOODLE_403_STABLE --depth 1 ; cd moodle ; cp ../moodle.bkp/config.php .
|
||||
# sudo -u www-data /usr/bin/php admin/cli/upgrade.php
|
||||
# cd /opt/iiab
|
||||
# mv moodle moodle.bkp
|
||||
# git clone https://github.com/moodle/moodle -b MOODLE_403_STABLE --depth 1 # As a regular 'git pull' will likely fail, due to original clone's '--depth 1' -- but no worries: total clone download is just ~100 MB, which expands to ~400 MB
|
||||
# cp moodle.bkp/config.php moodle/
|
||||
# cd moodle
|
||||
# sudo -u www-data /usr/bin/php admin/cli/upgrade.php # Or later log in to Moodle, to complete the upgrade (i.e. click "Continue" 4-5 times)
|
||||
# sudo -u www-data /usr/bin/php admin/cli/maintenance.php --disable
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue