Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 902 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 902 Bytes

Moodle Update Script

To automate our environment we wrote this shell script. It may wont work in your environment, but maybe you get some ideas for your own script.

Setup

  1. Download the moodle-update file into /var/www
  2. Make it executable ("chmod u+x")

Plugins

At the top of the script you have to check the list of folders which shall be used in the new moodle version. It's the FOLDER[]-Array. Modify it to your needs.

Usage

  • You can run the script with or without a moodle version paramter to install the latest version: ./update-moodle 3.5
  • You can also add an URL as 2nd parameter to specify the download source: ./update-moodle 3.5 https://example.com/moodle-3.5.2.zip
  • If a newer version is available, the script will inform you about it.

Restore

  • To restore a backup use: moodle-restore foldername
  • It has to be the same version (x.y) as in use.