From d46d5d12d799eadcd87bd7fb7bf2d3e57017a1a2 Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 20 Dec 2023 10:31:13 -0500 Subject: [PATCH] moodle/tasks/install.yml: Clarify CLI-based Moodle upgrade tips --- roles/moodle/tasks/install.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roles/moodle/tasks/install.yml b/roles/moodle/tasks/install.yml index f59be7a47..7a33421ae 100644 --- a/roles/moodle/tasks/install.yml +++ b/roles/moodle/tasks/install.yml @@ -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